{"id":13812959,"url":"https://github.com/imneme/pcg-c-basic","last_synced_at":"2025-05-14T22:31:25.460Z","repository":{"id":22043645,"uuid":"25372092","full_name":"imneme/pcg-c-basic","owner":"imneme","description":"PCG — Minimal C Implementation","archived":false,"fork":false,"pushed_at":"2023-11-25T11:44:58.000Z","size":202,"stargazers_count":409,"open_issues_count":17,"forks_count":51,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-11-19T07:40:00.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imneme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-17T18:46:23.000Z","updated_at":"2024-11-18T08:53:28.000Z","dependencies_parsed_at":"2024-08-04T04:03:03.352Z","dependency_job_id":null,"html_url":"https://github.com/imneme/pcg-c-basic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imneme%2Fpcg-c-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imneme%2Fpcg-c-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imneme%2Fpcg-c-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imneme%2Fpcg-c-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imneme","download_url":"https://codeload.github.com/imneme/pcg-c-basic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254239568,"owners_count":22037728,"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-08-04T04:00:58.671Z","updated_at":"2025-05-14T22:31:20.441Z","avatar_url":"https://github.com/imneme.png","language":"C","funding_links":[],"categories":["Cryptography"],"sub_categories":["Random Number Generation"],"readme":"# PCG Random Number Generation, Minimal C Edition\n\n[PCG-Random website]: http://www.pcg-random.org\n\nThis code provides a minimal implementation of one member of the PCG family\nof random number generators, which are fast, statistically excellent,\nand offer a number of useful features.\n\nFull details can be found at the [PCG-Random website].  This version\nof the code provides a single family member and skips some useful features\n(such as jump-ahead/jump-back) -- if you want a more full-featured library, \nyou may prefer the full version of the C library, or for all features,\nthe C++ library.\n\n## Documentation and Examples\n\nVisit [PCG-Random website] for information on how to use this library, or look\nat the sample code -- hopefully it should be fairly self explanatory.\n\n## Building\n\nThere is no library to build.  Just use the code.  You can however build the\nthree demo programs.\n\nThe code is written in C89-style C with no significant platform dependencies.\nOn a Unix-style system (e.g., Linux, Mac OS X), or any system with `make`,\nyou should be able to just type type\n\n    make\n\nAlmost all the real code is in `pcg_basic.c`, with type and function\ndeclarations in `pcg_basic.h`.  \n\nOn other systems, it should be straightforward to build.  For example, you\neven run the code directly using the tinycc compiler, using\n\n    cat pcg_basic.c pcg32-demo.c | tcc -run\n\n## Testing\n\nThis command will build the three provided demo programs, `pcg32-global-demo`\n(which uses the global rng), `pcg32-demo` (which uses a local generator), and\npcg32x2-demo (which gangs together two generators, showing the usefulness of\ncreating multiple generators).\n\nTo run the demos using a fixed seed (same output every time), run\n\n    ./pcg32-demo\n    \nTo produce different output, run\n\n    ./pcg32-demo -r\n\nYou can also pass an integer count to specify how may rounds of output you\nwould like.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimneme%2Fpcg-c-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimneme%2Fpcg-c-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimneme%2Fpcg-c-basic/lists"}