Steve, I don't think that method works. The mapping between the argument to
srand and the internal state of the MT is quite complicated. We are calling
a seed function in the library we are using that maps an integer to a state
vector so srand(1) and srand(2) end up as two quite different streams. I
think this is quite on purpose to avoid that many of the same streams get
repeated over and over. Also, I think the seed function tries to select a
state vector that doesn't require you to burn numbers.

2015-02-28 17:35 GMT-05:00 Ivar Nesje <[email protected]>:

> If you find evidence that there is anything wrong with the first N random
> numbers in the standard Random Number Generator (RNG) in Julia, we would
> consider that a bug, fix it, and release a new point release faster than a
> Lenovo CTO is able to arrange a meeting with someone who understands the
> https protocol.
>
> You should still be aware that we optimize for speed and statistical bias,
> so you should not rely on the built-in RNG for cryptography or other
> security related purposes.

Reply via email to