Re: [madman-discuss] AutoDJ problems with AMD64?
Brought to you by:
inducer
From: Shawn W. <sh...@wi...> - 2004-12-27 20:03:09
|
Kyle Liddell wrote: >Alright, that patch fixed it, although I'd like to have the more random >selection. I plastered the code with debugging stuff, and the variable >"which" usually gets a nice reasonable number on my 32bit box, but my >amd64 doesn't get any values of "which" smaller than 1.4+e14. >I'll dig into utility/mt_random* in the hope of finding something >obvious. > > Nice to know that's where the problem is. What are the integer sizes used by gcc on AMD64? It looks like the code uses longs, some signed, some unsigned, pretty much everywhere. Is long a 64-bit value on AMD64? I'd expect that another really good source of very uniform random numbers is /dev/random, if you wanted to try that out. It's probably a little overkill, but so is the Mersenne twister, actually. Shawn. |