Branch issue/10-versioned-rng-state targeting main. Summary, tests and the documented contracts are in the commit message and the issue comment.
Closes #10.
Branch `issue/10-versioned-rng-state` targeting `main`. Summary, tests and the documented contracts are in the commit message and the issue comment.
- Public, versioned State (algorithm identity "xoshiro256**", schema
version 1, four words in s0..s3 order) so consumers can define their
own wire format.
- restore() validates version and rejects the absorbing all-zero state
without touching the current stream; from_state() builds a generator
from saved state.
- bounded(n): unbiased rejection sampling in [0, n). Documented
zero-bound policy: n == 0 and n == 1 return 0 without consuming
randomness.
- 7 new tests freeze raw/bounded/state outputs for seed 42 (portable
across targets), verify save/restore suffix equality, invalid-state
rejection, zero/one bounds, large non-power-of-two ranges,
independent interleaved streams and discard equivalence.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #10.
Branch
issue/10-versioned-rng-statetargetingmain. Summary, tests and the documented contracts are in the commit message and the issue comment.