
26 Feb
2010
26 Feb
'10
11:53 p.m.
AMDG Slawomir Lisznianski wrote:
Daniel James wrote:
probably using Boost.Random, as your generator doesn't look very strong.
it shows decent distribution. btw, it's based off of research done by Thomas Wang, http://www.concentric.net/~Ttwang/tech/inthash.htm
That page does say: There has been queries whether these mix functions can be used for pseudo random purposes. Although the out does look random to the naked eye, the official recommendation is to use a real pseudo random number generator instead, such as the Mercenne Twister. The hash functions listed in this article were only tested for hashing purpose. No tests of randomness were performed. In Christ, Steven Watanabe