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
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
This archive was generated by hypermail 2.1.8 : Wed Jan 27 2010 - 16:15:07 EET