{"id":16660429,"url":"https://github.com/killme2008/secure-rand","last_synced_at":"2025-04-09T18:43:27.265Z","repository":{"id":62434595,"uuid":"20690712","full_name":"killme2008/secure-rand","owner":"killme2008","description":"A Clojure library designed to generate secure random float,int,bytes and strings based on java.security.SecureRandom","archived":false,"fork":false,"pushed_at":"2014-06-10T15:39:45.000Z","size":136,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-19T09:02:34.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/killme2008.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-10T15:30:39.000Z","updated_at":"2021-05-13T14:41:08.000Z","dependencies_parsed_at":"2022-11-01T21:02:17.856Z","dependency_job_id":null,"html_url":"https://github.com/killme2008/secure-rand","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killme2008%2Fsecure-rand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killme2008%2Fsecure-rand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killme2008%2Fsecure-rand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killme2008%2Fsecure-rand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killme2008","download_url":"https://codeload.github.com/killme2008/secure-rand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248090486,"owners_count":21046102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T10:29:13.658Z","updated_at":"2025-04-09T18:43:27.243Z","avatar_url":"https://github.com/killme2008.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# secure-rand\n\nA Clojure library designed to generate secure random float,int,bytes and strings based on [java.security.SecureRandom](http://docs.oracle.com/javase/7/docs/api/java/security/SecureRandom.html).\n\n## Usage\n\n``` clojure\n[secure-rand \"0.1\"]\n```\n\n### Secure version of  rand, rand-int and rand-nth\n\n``` clojure\n(ns test\n  (:refer-clojure :exclude [rand rand-int rand-nth])\n  (:use [secure-rand.core :only [rand rand-int rand-nth]]))\n\n(rand)\n(rand 10)\n(rand-int 100)\n(rand-nth (range 10))\n```\n\n### Other functions\n\n``` clojure\n(secure-rand.core/bytes size)\n```\n\nReturns a secure random byte array of the specified size.\n\n``` clojure\n(secure-rand.core/base64 size)\n```\n\nReturn a secure random base64 string of the specified size in bytes.\n\n``` clojure\n(secure-rand.core/base32 size)\n```\nReturn a secure random base32 string of the specified size in bytes.\n\n``` clojure\n(secure-rand.core/hex size)\n```\nReturn a secure random hex string of the specified size in bytes.\n\n## License\n\nCopyright © 2014 Dennis Zhuang [killme2008@gmail.com]\n\nDistributed under the Eclipse Public License 1.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillme2008%2Fsecure-rand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillme2008%2Fsecure-rand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillme2008%2Fsecure-rand/lists"}