[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] Minor inaccuracy in comment
From: |
Chris Hiszpanski |
Subject: |
[Bug-gsl] Minor inaccuracy in comment |
Date: |
Tue, 19 Feb 2019 08:46:09 +0000 |
Hello,
Noticed a comment in rng/taus113.c is inaccurate -- z_1 is computed from z_0,
not the other way around. Patch is provided below.
Chris
diff --git a/rng/taus113.c b/rng/taus113.c
index 04da6a89..a46248bc 100644
--- a/rng/taus113.c
+++ b/rng/taus113.c
@@ -39,7 +39,7 @@
work on architectures where integers are 64-bit.
The generator is initialized with
- zi = (69069 * z{i+1}) MOD 2^32 where z0 is the seed provided
+ z{i+1} = (69069 * z{i}) MOD 2^32 where z0 is the seed provided
During initialization a check is done to make sure that the initial seeds
have a required number of their most significant bits set.
After this, the state is passed through the RNG 10 times to ensure the
signature.asc
Description: OpenPGP digital signature
- [Bug-gsl] Minor inaccuracy in comment,
Chris Hiszpanski <=