How do I write a test to check if a random number generator is
working?
Context: I need something cross-platofrm that access system CSPRNGs (arc4random, bcyprt (on win), etc).
I can test local on a mac that it behaves sanely, but on windows (running as a github action), I want a few quick tests to check that it as least not all the same number repeated :)
Some days ago, the CRAN check with R-devel started to raise "Found non-API calls to R" NOTE. I'm not sure if they are serious on disallowing these not-so-minor APIs, but what should I do? Do you take some action or just wait? #stats
For example, rlang package now has these NOTE:
File ‘rlang/libs/rlang.so’:
Found non-API calls to R: ‘R_ClosureExpr’, ‘R_PromiseExpr’,
‘SETLENGTH’, ‘SET_ENCLOS’, ‘SET_ENVFLAGS’, ‘SET_TRUELENGTH’