Skip to content

Commit 57536ad

Browse files
committed
Describe quality stars
1 parent 2f703e3 commit 57536ad

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/prng/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,21 @@
145145
//! unpredictable. This implies there must be no obvious correlations between
146146
//! output values.
147147
//!
148+
//! ### Quality stars:
149+
// 5. reserved for crypto-level (e.g. ChaCha8, ISAAC)
150+
// 4. good performance on TestU01 and PractRand, good theory
151+
// (e.g. PCG, truncated Xorshift*)
152+
// 3. good performance on TestU01 and PractRand, but "falling through the
153+
// cracks" or insufficient theory (e.g. SFC, Xoshiro)
154+
// 2. imperfect performance on tests or other limiting properties, but not
155+
// terrible (e.g. Xoroshiro128+)
156+
// 1. clear deficiencies in test results, cycle length, theory, or other
157+
// properties (e.g. Xorshift)
158+
//!
159+
//! PRNGs with 3 stars or more should be good enough for any purpose.
160+
//! 1 or 2 stars may be good enough for typical apps and games, but do not work
161+
//! well with all algorithms.
162+
//!
148163
//! ## Period
149164
//!
150165
//! The *period* or *cycle length* of a PRNG is the number of values that can be

0 commit comments

Comments
 (0)