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.
-gabriel