[SR-11460] Provide function to let users sanity check their RNG #53861
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
documentation
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 82cd123a44470ae3497531f82a9e7f5e
Issue Description:
There is some subtlety in implementing a correct RNG primitive. We should provide (either in the standard library or as a standalone package) a basic test suite that allows a user to validate their RNG passes necessary statistical tests. A simple port of TestU01 to Swift would be a reasonable first step.
This is not complete validation, because RNGs have a bunch of subtle desirable properties that cannot easily be tested, but it would allow developers to avoid some of the most basic hazards.
Spun off from SR-11447
The text was updated successfully, but these errors were encountered: