[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01061] Re: rand() / drand48()

From: gotoken@... (GOTO Kentaro)
Date: 2000-01-07 10:31:36 UTC
List: ruby-talk #1061
Hi,

In message "[ruby-talk:01055] Re: rand() / drand48()"
    on 00/01/06, Yukihiro Matsumoto <matz@netlab.co.jp> writes:

>Oops, I haven't noticed that.  You're right.  Here's the patch.

But your patch is not suitable because a random generator function
should return same series for each process unless an initializer was
explicitly called by a user.  It's a non-documented traditional
behavior of rand() family.  So, you should not initialize by a clock
value implicitly.

thanks

-- gotoken

In This Thread