Access System Cryptographic Pseudorandom Number Generators
Overview
Generate random numbers from the Cryptographically Secure Pseudorandom Number Generator (CSPRNG) provided by the underlying operating system. System CSPRNGs are seeded internally by the OS with entropy it gathers from the system hardware. The following system functions are used: arc4random_buf() on macOS and BSD; BCryptgenRandom() on Windows; Sys_getrandom() on Linux.
- Fix mis-specified function declarations picked up by CRAN LTO checks
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 1
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/coolbutuseless/cryptorng on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing cryptorng adds no packages beyond those that come with R.
Code & Tests
People & History
Package metadata
- First published
- 2024-04-28
- Total releases
- 3 / 2 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 5.6 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cryptorng")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.