4 ms·
Since it's an LCG, it does not matter how it was derived as long as the randomness properties are known. Such as cycle length, identical initial state set and d
by AstralStorm 4y ago
Since it's an LCG, it does not matter how it was derived as long as the randomness properties are known. Such as cycle length, identical initial state set and dispersion properties. Perhaps also performance.
These should be documented.
It's a rather weak PRNG of short cycle, so the suspicion is that it's made for particular dispersion properties, such as for a hash table of particular data and size or other bucketing algorithm.
- ChrisLomont 4y ago>These should be documented. They're trivial to look up, and any modern source would likely outlive the game of telephone of trying to keep such a comment intact correctly.