isUniformRNG

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Wed May 7 13:11:03 PDT 2014


On 5/7/2014 4:06 PM, Nick Sabalausky wrote:
>
> // The algorithm specifically supports generating
> // arbitrary lengths at once, so can also do:
> HashDRBGStream!uint randStream;
>

Oops, that's supposed to be:

HashDRBGStream!() randStream;
//aka:
// HashDRBGStream!(SHA512, "D Crypto RNG") randStream;

The stream version isn't a range and only supports filling a provided 
ubyte[] buffer. So no element type.



More information about the Digitalmars-d mailing list