{"id":38967063,"url":"https://github.com/christophsturm/randolf","last_synced_at":"2026-01-17T16:31:44.680Z","repository":{"id":51545606,"uuid":"161466908","full_name":"christophsturm/randolf","owner":"christophsturm","description":"Autogenerated data for your tests","archived":false,"fork":false,"pushed_at":"2023-12-15T14:34:51.000Z","size":181,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-15T15:44:54.312Z","etag":null,"topics":["kotlin","tdd","test","test-driven-development","testing","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/christophsturm.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":"2018-12-12T09:49:10.000Z","updated_at":"2023-12-15T15:44:54.312Z","dependencies_parsed_at":"2022-08-22T07:00:22.972Z","dependency_job_id":null,"html_url":"https://github.com/christophsturm/randolf","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/christophsturm/randolf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophsturm%2Frandolf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophsturm%2Frandolf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophsturm%2Frandolf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophsturm%2Frandolf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christophsturm","download_url":"https://codeload.github.com/christophsturm/randolf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christophsturm%2Frandolf/sbom","scorecard":{"id":281239,"data":{"date":"2025-08-11","repo":{"name":"github.com/christophsturm/randolf","commit":"68fc818c83d938b2802e489ddc175b484663e541"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"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/19 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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/christophsturm/randolf/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/christophsturm/randolf/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 16 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-17T15:55:09.029Z","repository_id":51545606,"created_at":"2025-08-17T15:55:09.029Z","updated_at":"2025-08-17T15:55:09.029Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["kotlin","tdd","test","test-driven-development","testing","testing-tools"],"created_at":"2026-01-17T16:31:44.046Z","updated_at":"2026-01-17T16:31:44.672Z","avatar_url":"https://github.com/christophsturm.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Randolf the rand nosed randeer\n\n\nAutogenerated data for your tests.\n\nThis is how it looks in action:\n```\nenum class BeanType { ROBUSTA, ARABICA }\ndata class Group(val name: String)\ndata class User(\n    val firstName: String,\n    val name: String,\n    val age: Int,\n    val lat: Double,\n    val lon: Double,\n    val isBoss: Boolean,\n    val teamSize: Short,\n    val flags: Byte,\n    val shortName: Char,\n    val efficiency: Float,\n    val favoriteCoffee: BeanType,\n    val groups: List\u003cGroup\u003e\n)\nprint(Randolf().create\u003cUser\u003e())\n        \n//=\u003e User(firstName=QV muCLbUVfVheboeSuN, name=MSdOzpRCFIykprACOHjv, age=2116525025, lat=0.9518687079417872, lon=0.8331958938906572, isBoss=false, teamSize=4310, flags=83, shortName=Z, efficiency=0.76879007, favoriteCoffee=ARABICA, groups=[Group(name=TpiFXUrucFA cMARKLiR), Group(name=floFeNep XBEZUfXwQgL)])\n```\n\n# Usage:\nAdd this to your Gradle dependencies:\n\n```\n    implementation(\"com.christophsturm:randolf:0.2.2\")\n```\n\n\nYou can create any Kotlin data class like in the example above. All fields will be set to random values, even nullable\nfields. You can choose to set only necessary fields by calling `Randolf.create(RandolfConfig(minimal=true))` instead.\nThis will set all nullable fields to null, numbers to 0 and make strings, lists and maps empty. For more usage examples\ntake a look at the [unit tests](src/test/kotlin/randolf/RandolfTest.kt).\n\nSupported types:\n* String\n* Int\n* Long\n* Double\n* Short\n* Float\n* Byte\n* Boolean\n* Char\n* Enums\n* List\n* Set\n* Collection\n* Map\n\n# Configuration\n\nIf you want to change defaults or support more types, you can pass a [RandolfConfig](src/main/kotlin/randolf/RandolfConfig.kt) to the Randolf constructor.\n\nHere is a config that returns now for `Instant`:\n```\nRandolfConfig(additionalValueCreators = mapOf(Instant::class to { _, _ -\u003e Instant.now() }))\n```\nYou can override supported types, and use the name and type of the field:\n```\nRandolfConfig(additionalValueCreators = mapOf(String::class to { type: KType, name: String -\u003e\n                    \"field $name of type $type\"\n                }))\n```\nYou can also inject a random generator for example to set the seed: \n```\nRandolfConfig(random = Random(1234))\n```\n \nNext steps:\n\n* add an optional non-random mode inspired by [Fakir](https://github.com/dmcg/fakir)\n* build for Kotlin/JS and Kotlin/Native.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophsturm%2Frandolf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophsturm%2Frandolf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophsturm%2Frandolf/lists"}