[LAD] random curiosity
Gabriel M. Beddingfield
gabrbedd at gmail.com
Wed Jan 27 13:48:45 UTC 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 601 bytes
Desc:
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20100127/42bf96f1/attachment.cpp>
More information about the Linux-audio-dev
mailing list