topN using a heap

Ilya via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 18 15:59:02 PST 2016


On Monday, 18 January 2016 at 23:55:38 UTC, Timon Gehr wrote:
> On 01/19/2016 12:51 AM, Ilya wrote:
>> On Monday, 18 January 2016 at 23:49:36 UTC, Andrei 
>> Alexandrescu wrote:
>>> On 1/18/16 6:44 PM, Ilya wrote:
>>>> On Monday, 18 January 2016 at 23:27:19 UTC, Ivan Kazmenko 
>>>> wrote:
>>>>> [...]
>>>>
>>>> No, it is definitely possible, because RNGs are Pseudo-RNGs. 
>>>> --Ilya
>>>
>>> unpredictableSeed uses the system clock as a source of 
>>> randomness, so
>>> we're good there. -- Andrei
>>
>> Would this work for pure functions? --Ilya
>
> Only if they accept the RNG as an additional argument.

Exactly :) So, I hope we would not add Pseudo-RNGs in 
std.algorithm. --Ilya


More information about the Digitalmars-d mailing list