Skip to content

Commit

Permalink
Merge pull request #17 from vks/fix-predictability-statements
Browse files Browse the repository at this point in the history
Fix predictability statements
  • Loading branch information
dhardy authored Nov 13, 2019
2 parents 0eab948 + a449cfd commit 97fb54e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/guide-rngs.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ You may wish to refer to the [pcg-random] and [xoshiro] websites.
|------|-----------|-------------|--------|---------|--------|----------|
| [`SmallRng`] | (unspecified) | 7 GB/s | 16 bytes | ★★★☆☆ |`u32` * 2<sup>64</sup> | not portable |
| [`Pcg32`] | PCG XSH RR 64/32 (LCG) | 3 GB/s | 16 bytes | ★★★☆☆ | `u32` * 2<sup>64</sup> ||
| [`Pcg64`] | PCG XSL 128/64 (LCG) | 4 GB/s | 32 bytes | ★★★| `u64` * 2<sup>128</sup> ||
| [`Pcg64`] | PCG XSL 128/64 (LCG) | 4 GB/s | 32 bytes | ★★★| `u64` * 2<sup>128</sup> ||
| [`Pcg64Mcg`] | PCG XSL 128/64 (MCG) | 7 GB/s | 16 bytes | ★★★☆☆ | `u64` * 2<sup>126</sup> ||
| [`XorShiftRng`] | Xorshift 32/128 | 5 GB/s | 16 bytes | ★☆☆☆☆ | `u32` * 2<sup>128</sup> - 1 ||
| [`Xoshiro256StarStar`] | Xoshiro256\*\* | 7 GB/s | 32 bytes | ★★★☆☆ | `u64` * 2<sup>256</sup> - 1 | jump-ahead |
| [`Xoshiro256PlusPlus`] | Xoshiro256++ | 7 GB/s | 32 bytes | ★★★☆☆ | `u64` * 2<sup>256</sup> - 1 | jump-ahead |
| [`Xoshiro256Plus`] | Xoshiro256+ | 8 GB/s | 32 bytes | ★★☆☆☆ | `u64` * 2<sup>256</sup> - 1 | jump-ahead |
| [`SplitMix64`] | splitmix64 | 8 GB/s | 8 bytes | ★☆☆☆☆ | `u64` * 2<sup>64</sup> ||
| [`StepRng`] | counter | 51 GB/s | 16 bytes | ☆☆☆☆☆ | `u64` * 2<sup>64</sup> ||
Expand All @@ -58,8 +58,6 @@ based on theory and observable defects, roughly as follows:
- ★☆☆☆☆ = suitable for simple applications but with significant flaws
- ★★☆☆☆ = good performance in most tests, some issues
- ★★★☆☆ = good performance and theory, no major issues
- ★★★★☆ = no observable issues and not trivial to predict (but not
recommended for security)
- ★★★★★ = cryptographic quality

## Cryptographically secure pseudo-random number generators (CSPRNGs)
Expand Down Expand Up @@ -306,7 +304,7 @@ http://random.mat.sbg.ac.at/results/peter/A19final.pdf) by P. Hellekalek.
[`Pcg64`]: ../rand/rand_pcg/type.Pcg64.html
[`Pcg64Mcg`]: ../rand/rand_pcg/type.Pcg64Mcg.html
[`XorShiftRng`]: ../rand/rand_xorshift/struct.XorShiftRng.html
[`Xoshiro256StarStar`]: ../rand/rand_xoshiro/struct.Xoshiro256StarStar.html
[`Xoshiro256PlusPlus`]: ../rand/rand_xoshiro/struct.Xoshiro256PlusPlus.html
[`Xoshiro256Plus`]: ../rand/rand_xoshiro/struct.Xoshiro256Plus.html
[`SplitMix64`]: ../rand/rand_xoshiro/struct.SplitMix64.html
[`ChaChaRng`]: ../rand/rand_chacha/struct.ChaChaRng.html
Expand Down

0 comments on commit 97fb54e

Please sign in to comment.