summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-10-07 06:42:51 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-10-07 06:42:51 -0700
commit7ced689e80d1733a40c6f51b764619c663e69345 (patch)
tree3161f4bf18eaabd98312cc09e582a22b57a6f7fb
parentdbdb940ab6c624820f295a1ee419fecbce075b86 (diff)
downloadtxr-7ced689e80d1733a40c6f51b764619c663e69345.tar.gz
txr-7ced689e80d1733a40c6f51b764619c663e69345.tar.bz2
txr-7ced689e80d1733a40c6f51b764619c663e69345.zip
random: correctly refer to WELL512a everywhere.
* rand.c: Refer to "WELL512a" in comment, not "WELL 512". * txr.1: Replace "WELL 512" with "WELL512a" everywhere.
-rw-r--r--rand.c2
-rw-r--r--txr.110
2 files changed, 6 insertions, 6 deletions
diff --git a/rand.c b/rand.c
index 731fd0ef..e8faffe5 100644
--- a/rand.c
+++ b/rand.c
@@ -51,7 +51,7 @@ typedef unsigned long rand32_t;
#endif
/*
- * The algorithm here is WELL 512.
+ * The algorithm here is WELL512a.
* (Francois Panneton, Pierre L'Ecuyer.)
*/
struct rand_state {
diff --git a/txr.1 b/txr.1
index 067f9b80..b08edbfd 100644
--- a/txr.1
+++ b/txr.1
@@ -55791,7 +55791,7 @@ values from it which are discarded, prior to use. The number of values
discarded is the
.IR "warm-up period" .
-The WELL PRNG used in \*(TX produces 32-bit values, natively. Thus each
+The WELL512a PRNG used in \*(TX produces 32-bit values, natively. Thus each
warm-up iteration retrieves and discards a 32-bit value. The PRNG has
a state space consisting of a vector of sixteen 32-bit words, making
the state space 4096 bits wide.
@@ -55932,7 +55932,7 @@ is used.
.desc
All three functions produce pseudo-random numbers, which are positive integers.
-The numbers are obtained from a WELL 512 PRNG, whose state is stored in the
+The numbers are obtained from a WELL512a PRNG, whose state is stored in the
random state object.
The
@@ -55969,7 +55969,7 @@ The
.code random-float
function produces a pseudo-random floating-point value in the range [0.0, 1.0).
-The numbers are obtained from a WELL 512 PRNG, whose state is stored in the
+The numbers are obtained from a WELL512a PRNG, whose state is stored in the
random state object given by the argument to the optional
.meta random-state
parameter, which defaults to the value of
@@ -75527,9 +75527,9 @@ Two mistakes in the pseudo-random-number generator (PRNG) were discovered,
affecting \*(TX 243 and older. Using this compatibility value, or lower, will
restore the buggy behavior, allowing pseudo-random number sequences produced
by those older versions can be reproduced. The PRNG is intended to be an
-implementation of the WELL-512 PRNG described by Panneton and L'Ecuyer.
+implementation of the WELL512a PRNG described by Panneton and L'Ecuyer.
The coding mistakes, however, resulted in the PRNG being an implementation of
-something other than WELL-512.
+something other than WELL512a.
.IP 242
In \*(TX 242 and older, the instantiation of an object whose type inherits
from the same supertype more than once resulted in duplicate execution