[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort/shuf/shred: support fixed random-seed
From: |
Pádraig Brady |
Subject: |
Re: sort/shuf/shred: support fixed random-seed |
Date: |
Mon, 09 Feb 2015 21:06:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 09/02/15 19:15, Assaf Gordon wrote:
> Hello Pádraig,
>
> On 02/09/2015 12:22 PM, Pádraig Brady wrote:
> <...>
>> No counter arguments, which is surprising.
>
> For me,
> your 'openssl' trick to generate reproducible (not so) random data was good
> enough - perhaps if it's documented it will suffice?
>
>> Anyway personally I prefer the --random-seed option
>> as it's neater, has less deps, and is about 10% faster even with hardware
>> assist.
>>
>> As for the --random-seed interface.
>> Should we be supplying a string rather than an int?
>> At least we need to cater for endianness issues with an int,
>> but a string might be easier to use.
>>
>
> I do like it as well, but I'm biased...
>
> If we decide to continue with '--random-seed', I can work on improved patch
> to implement that.
Thanks for the feedback.
If this was often used we might consider the new option,
however given the relatively infrequent use, let's err
on the side of more documentation, and less options.
The attached patch documents this.
thanks,
Pádraig.
coreutils-random-seed-doc.patch
Description: Text Data