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 onthe screenshots ;-)( haiku = wrong , zeta/linux true ) URL: http://tm.kaldience.com/data/php/dir.php?dir=/dir/members/stargater/CPP/RandTestI'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/