[haiku-development] Re: srand / rand bug

  • From: Ralf Schülke <teammaui@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 18 Apr 2008 22:02:50 +0200

On Fri, 18 Apr 2008 16:32:36 +0200, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:



On 2008-04-18 at 15:02:01 [+0200], Ralf Schuelke <teammaui@xxxxxx> wrote:
Hi developers.
i have a problem in haiku with srand and rand, i not sure what goes wrong. The problem is that rand is not realy rand, i have a factor from 8 ( + ore
-) when
i used a field from 4x4 ( 4x4 = 16 , 16/2 = 8 )

The filed looks so:

[x][x][x][x]
[x][x][x][x]
[x][x][x][x]
[x][x][x][x]

i write a test app and make screenshot, i hope your can the the problem on
the
screenshots ;-)( haiku = wrong , zeta/linux true )
URL:
http://tm.kaldience.com/data/php/dir.php?dir=/dir/members/stargater/CPP/RandTest

I've updated our [s]rand() functions to newer versions from FreeBSD (in r25023).
I hope this improves the situation.

CU, Ingo

So big thanks Ingo, it works fine now :-)
Now i am happy , i hope you too ;-)

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Other related posts: