Gabriel M. Beddingfield wrote:
On Thu, 28 Jan 2010, cal wrote:
Gabriel M. Beddingfield wrote:
[ ... ]
srandom_r(salt, &seed);
Thus, if you repeat the note with identical velocity... you'll always
get the same random-number sequence.
or do you just get a segfault :-) ?
Wow. random_r() is /really/ poorly documented. Non-segfaulting example
attached.
Yeah, I too wandered innocently into the parallel universe alluded to here
(and no doubt elsewhere) <http://sourceware.org/bugzilla/show_bug.cgi?id=3662>.
I thought wow, that was 2006! Surely it's been sorted by now. Apparently not.
Cheers.