Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11460] Provide function to let users sanity check their RNG #53861

Open
stephentyrone opened this issue Sep 12, 2019 · 1 comment
Open

[SR-11460] Provide function to let users sanity check their RNG #53861

stephentyrone opened this issue Sep 12, 2019 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation standard library Area: Standard library umbrella

Comments

@stephentyrone
Copy link
Member

Previous ID SR-11460
Radar None
Original Reporter @stephentyrone
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, Documentation, Test
Assignee None
Priority Medium

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

@stephentyrone
Copy link
Member Author

CC @natecook1000, @airspeedswift

We need to give some thought to what the right vehicle for delivering this is.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant