{"id":46192478,"url":"https://github.com/leonelquinteros/gorand","last_synced_at":"2026-03-03T01:05:46.388Z","repository":{"id":57483398,"uuid":"60116499","full_name":"leonelquinteros/gorand","owner":"leonelquinteros","description":"Random data generation methods for Go","archived":false,"fork":false,"pushed_at":"2019-07-30T22:00:31.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T12:51:02.540Z","etag":null,"topics":["cryptography","go","golang","random-generation","uuid"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leonelquinteros.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":"2016-05-31T19:14:00.000Z","updated_at":"2024-03-07T23:01:27.000Z","dependencies_parsed_at":"2022-08-28T17:01:39.451Z","dependency_job_id":null,"html_url":"https://github.com/leonelquinteros/gorand","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/leonelquinteros/gorand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fgorand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fgorand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fgorand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fgorand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonelquinteros","download_url":"https://codeload.github.com/leonelquinteros/gorand/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelquinteros%2Fgorand/sbom","scorecard":{"id":585067,"data":{"date":"2025-08-11","repo":{"name":"github.com/leonelquinteros/gorand","commit":"09b9ddc89bbaeb3a6daf8f70b6f9dc0bfdd38927"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}}]},"last_synced_at":"2025-08-20T20:14:02.984Z","repository_id":57483398,"created_at":"2025-08-20T20:14:02.985Z","updated_at":"2025-08-20T20:14:02.985Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30028238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T00:31:48.536Z","status":"ssl_error","status_checked_at":"2026-03-03T00:30:56.176Z","response_time":60,"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","go","golang","random-generation","uuid"],"created_at":"2026-03-03T01:05:45.156Z","updated_at":"2026-03-03T01:05:46.371Z","avatar_url":"https://github.com/leonelquinteros.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub release](https://img.shields.io/github/release/leonelquinteros/gorand.svg)](https://github.com/leonelquinteros/gorand)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![GoDoc](https://godoc.org/github.com/leonelquinteros/gorand?status.svg)](https://godoc.org/github.com/leonelquinteros/gorand)\n[![Build Status](https://travis-ci.org/leonelquinteros/gorand.svg?branch=master)](https://travis-ci.org/leonelquinteros/gorand)\n[![Go Report Card](https://goreportcard.com/badge/github.com/leonelquinteros/gorand)](https://goreportcard.com/report/github.com/leonelquinteros/gorand)\n[![codecov](https://codecov.io/gh/leonelquinteros/gorand/branch/master/graph/badge.svg)](https://codecov.io/gh/leonelquinteros/gorand)\n\n\n# Gorand\n\nGoodies for working with random stuff.\n\nPackage gorand defines a set of utility methods to work with random data. \n\nThe main goal is to curate a collection of functions for random data generation \nin different formats to be used for different purposes. \n\nIt uses the \"crypto/rand\" package to provide the most secure random data, \nunless indicated otherwise where performance can be the main focus of the method. \n\nMost implementations are really trivial and anybody could write the same on their own packages, \nbut here we can centralize all of them and keep a unified way of retrieving random data. \n\nUnified QA is another motivator to have and use this package.\n\nBelow are some examples of functions inside this package, for the entire reference and docs please refer to the documentation at https://godoc.org/github.com/leonelquinteros/gorand\n\n\n## UUID\n\nGenerates a version 4 (randomly generated) UUID as defined in RFC 4122\n\n```go\npackage main \n\nimport (\n    \"fmt\"\n    \"github.com/leonelquinteros/gorand\"\n)\n\nfunc main() {\n    // Get UUID value\n    uuid, err := gorand.UUIDv4()\n    if err != nil {\n        panic(err.Error())\n    }\n\n    // Marshal to string\n    str, err := gorand.MarshalUUID(uuid)\n\tif err != nil {\n\t\tpanic(err.Error())\n    }\n    \n    // Print UUID as its canonical representation\n    fmt.Println(str)\n}\n```\n\n\n## GetAlphaNumString\n\nReturns a fixed length string of random letters and numbers [a-z][A-Z][0-9]\n\n```go\nimport \"github.com/leonelquinteros/gorand\"\n\nfunc main() {\n    value, err := gorand.GetAlphaNumString(24)\n    if err != nil {\n        panic(err.Error())\n    }\n    \n    println(value)\n}\n```\n\n\n## GetHex\n\nRetrieves a fixed amount of bytes hex number represented as a string. \nThe result string length will have twice the number of bytes requested. \n\n```go\nimport \"github.com/leonelquinteros/gorand\"\n\nfunc main() {\n    value, err := gorand.GetHex(64)\n    if err != nil {\n        panic(err.Error())\n    }\n    \n    println(value)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonelquinteros%2Fgorand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonelquinteros%2Fgorand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonelquinteros%2Fgorand/lists"}