* Set lcg48 default seed_index for user's reference

This commit is contained in:
Wirawan Purwanto
2013-08-19 10:11:09 -04:00
parent 42fdcc5253
commit 2907b2ca77

View File

@@ -22,6 +22,7 @@ class lcg48(rng_base):
# This is "seed 1" in the legacy rannyu seed library.
L = 127
n = 11863279
seed_index = 1
div_two_48 = 2.0**(-48)
def __call__(self):
L_new = (self.m * self.L + self.n) & 0xFFFFFFFFFFFF