{"id":43464852,"url":"https://github.com/asggo/random","last_synced_at":"2026-02-03T06:16:50.997Z","repository":{"id":48280420,"uuid":"101670653","full_name":"asggo/random","owner":"asggo","description":"Cryptographically secure random strings, ints, and ranges in Golang","archived":false,"fork":false,"pushed_at":"2021-08-03T15:45:28.000Z","size":13,"stargazers_count":15,"open_issues_count":0,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-17T01:58:55.276Z","etag":null,"topics":["cryptography","golang","golang-package"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asggo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-28T17:47:34.000Z","updated_at":"2024-02-16T01:23:14.000Z","dependencies_parsed_at":"2022-09-26T22:11:36.968Z","dependency_job_id":null,"html_url":"https://github.com/asggo/random","commit_stats":null,"previous_names":["averagesecurityguy/random"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asggo/random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asggo%2Frandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asggo%2Frandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asggo%2Frandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asggo%2Frandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asggo","download_url":"https://codeload.github.com/asggo/random/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asggo%2Frandom/sbom","scorecard":{"id":211352,"data":{"date":"2025-08-11","repo":{"name":"github.com/asggo/random","commit":"d84c3ae3b767dc8fa9199233c719434a3f5d70ab"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T00:49:10.822Z","repository_id":48280420,"created_at":"2025-08-17T00:49:10.822Z","updated_at":"2025-08-17T00:49:10.822Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29035647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:11:29.234Z","status":"ssl_error","status_checked_at":"2026-02-03T06:11:03.146Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cryptography","golang","golang-package"],"created_at":"2026-02-03T06:16:50.930Z","updated_at":"2026-02-03T06:16:50.988Z","avatar_url":"https://github.com/asggo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Random\n======\n\npackage random\n    import \"github.com/averagesecurityguy/random\"\n\n    The random package provides cryptographically secure random integers\n    and strings\n\nFunctions\n=========\n\nfunc Alpha(n uint64) (string, error)\n\n    Alpha returns a string of length n, which consists of random upper case\n    and lowercase characters. If n is less than or equal to zero then an\n    empty string is returned\n\nfunc AlphaNum(n uint64) (string, error)\n\n    AlphaNum returns a string of length n, which consists of random\n    uppercase, lowercase, and numeric characters. If n is zero then an empty\n    string is returned.\n\nfunc Chars(charset string, n uint64) (string, error)\n\n    Chars returns a random string of length n, which consists of the given\n    character set. If the charset is empty or n is less than or equal to\n    zero then an empty string is returned.\n\nfunc Int16() (int16, error)\n\n    Int16 returns a random 16-bit signed integer. Return 0 and an error if\n    unable to get random data.\n\nfunc Int32() (int32, error)\n\n    Int32 returns a random 32-bit signed integer. Return 0 and an error if\n    unable to get random data.\n\nfunc Int64() (int64, error)\n\n    Int64 returns a random 64-bit signed integer. Return 0 and an error if\n    unable to get random data.\n\nfunc Int8() (int8, error)\n\n    Int8 returns a random 8-bit signed integer. Return 0 and an error if\n    unable to get random data.\n\nfunc Token() (string, error)\n\n    Token returns a string suitable for cryptographic tokens such as session\n    ids.\n\nfunc Uint16() (uint16, error)\n\n    Uint16 returns a random 16-bit unsigned integer. Return 0 and an error\n    if unable to get random data.\n\nfunc Uint32() (uint32, error)\n\n    Uint32 returns a random 32-bit unsigned integer. Return 0 and an error\n    if unable to get random data.\n\nfunc Uint64() (uint64, error)\n\n    Uint64 returns a random 64-bit unsigned integer. Return 0 and an error\n    if unable to get random data.\n\nfunc Uint64Range(start, end uint64) (uint64, error)\n\n    Uint64Range returns a random 64-bit unsigned integer in the range\n    [start, end]. An error is returned if start is greater than end.\n\nfunc Uint8() (uint8, error)\n\n    Uint8 returns a random 8-bit unsigned integer. Return 0 and an error if\n    unable to get random data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasggo%2Frandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasggo%2Frandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasggo%2Frandom/lists"}