Skip to content

cryptorng

0.1.4

Access System Cryptographic Pseudorandom Number Generators

0packages depend
6.7Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Mike ChengFirst published 2024-04-283 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 52 s · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.86
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
No
README
0
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

6.7K
CRAN downloads in the past year
Rank #6,718 · ~18/day · ~559/mo
Daily download trend is not available in this view yet.
52330 days
1.6K90 days
6.7K1 year
Compare downloads with other packages →
Also on423 r2u4 autocran

Repository

Repository
2Stars
0Forks
0Open issues
0Open PRs
0Releases
14Commits
14 commits · 0% stars, 30d

Stars over time

2024-05-08 · 12026-07-07 · 2

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
C 270 (57%)R 134 (28%)Rd 72 (15%)
Code characteristics
Cyclomatic complexity
1.0 median / 1 max
Test cases
4 / 0.86 per code line
Documented parameters
100%

Test coverage

Line coverage

Expression

Tests / Examples

Functions

9 1 exported

Complexity

1 avg / 1 max

Call network

9 nodes / 11 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Release timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.4Latest
    2024-06-02 · current release · diff ↗
  • 0.1.3
    2024-05-30 · diff ↗
  • 0.1.2
    2024-04-28
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-04-28
Total releases
3 / 2 yrs
License
MIT + file LICENSE OSI
Download size
5.6 KB
Installed size
not tracked yet
With dependencies
not tracked yet