Re: initstate() on FreeBSD/sparc64

2003-09-01 Thread Hiroki Sato
Hiroki Sato <[EMAIL PROTECTED]> wrote in <[EMAIL PROTECTED]>: hrs> I noticed that initstate() caused memory corruption on hrs> FreeBSD/sparc64. I guess this is because lib/libc/stdlib/random.c hrs> assumes "long" is 32-bit long. Some suggested using int32_t/uint32_t instead of int if the r

initstate() on FreeBSD/sparc64

2003-08-31 Thread Hiroki Sato
Hi, I noticed that initstate() caused memory corruption on FreeBSD/sparc64. I guess this is because lib/libc/stdlib/random.c assumes "long" is 32-bit long. The attached patch works fine on my box, but this is a bit ugly. Could anyone take care of this? -- | Hiroki SATO <[EMAIL PROTECTED