On Tue, May 21, 2013 at 2:50 AM, Steve Kargl
<s...@troutmask.apl.washington.edu> wrote:
> On Fri, May 17, 2013 at 03:18:01PM +0300, Janne Blomqvist wrote:
>> Hi,
>>
>> the example we provide for the usage of the random_seed intrinsic
>> could be better. At least one user has already been tripped over by
>> the fact that on some targets the first call to system_clock returns
>> 0, resulting in a poor seed. Below is an improved(?!) example program.
>>
>> Ok for trunk/4.8/4.7? (Changelog + patch is of course trivial once
>> there is agreement on the code itself)
>>
>
> Looks OK to me.
>
> It should probably also be noted in the manual that one can get
> real poor results if one does not set all seed values.

Thanks. Attached is the patch I committed following 'make pdf'
testing. Committed to trunk/4.8 (after Jakub's approval on IRC)/4.7.


--
Janne Blomqvist

Attachment: rseed.diff
Description: Binary data

Reply via email to