Closed c42f closed 3 years ago
It seems that the authors suggest splitmix for initialization:
http://prng.di.unimi.it/ http://prng.di.unimi.it/splitmix64.c
Though even using this wouldn't change the fact that there's certain nonzero states which generate very short repeated sequences.
Thank you for bringing this up! I did realize the problem before, but haven't taken efforts to fix it.
Actually, Xoshiro256Plus
(which is the more recommended) has already used splitmix for initialization. Maybe I should use it for every RNG that performs bad with small seeds.
For your information, S. Vigna (@vigna) has discussed this point that affects linear PRNGs combined with weak scramblers (such as those that end in a single +
):
Solved in the new release.
It seems there are several extremely poor seeds for Xorshift128Plus which result in repeating sequences. For example, seed 512:
Examining the first million seeds, we can easily find several such examples which seem to fail in a similar way: