Re: [LAD] random curiosity

From: cal <cal@email-addr-hidden>
Date: Wed Jan 27 2010 - 17:28:34 EET

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.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Jan 27 20:15:03 2010

This archive was generated by hypermail 2.1.8 : Wed Jan 27 2010 - 20:15:03 EET