Skip to content

Clean up RNG comparison table#100

Open
vks wants to merge 4 commits into
masterfrom
clean-up-rng-list
Open

Clean up RNG comparison table#100
vks wants to merge 4 commits into
masterfrom
clean-up-rng-list

Conversation

@vks

@vks vks commented May 17, 2026

Copy link
Copy Markdown
Contributor

What statements we made and didn't make for StdRng and SmallRng was inconsistent. Now, we only specify what we are willing to guarantee.

The full stats for the currently chosen algorithms are still there: ChaChaRng12 (newly added to the table) and Xoshiro256PlusPlus (unchanged) are part of the comparison.

Also state that rand_pcg now supports jump-ahead.

vks added 2 commits May 17, 2026 16:52
- Only state facts we are willing to commit to.
- Make sure to list the currently underlying algorithms with full
  statistics.

This way, we only communicate what we are willing to guarantee. As a
nice side effect, the comparison is less likely to go out of date if we
change the underlying algorithm of `StdRng` or `SmallRng`. This
happened for `SmallRng`, which until now stated an incorrect state size.

Fixes #58.
@vks

vks commented May 17, 2026

Copy link
Copy Markdown
Contributor Author

I still left the Initialization: fast statement for StdRng, but we could also remove it if we don't want to guarantee it.

Comment thread src/guide-rngs.md Outdated
Comment thread src/guide-rngs.md Outdated
Comment thread src/guide-rngs.md Outdated
@vks vks requested a review from dhardy June 15, 2026 15:02
@vks

vks commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

@dhardy I addressed your comments. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants