Mir Random [WIP]

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 23 05:42:31 PST 2016


On 11/23/2016 05:27 AM, Joseph Rushton Wakeling wrote:
>
> Alternative solution: functionality that expects the full unsigned
> integer word (UIntType) to be filled with random bits, should validate
> that the min/max values of the generator correspond to UIntType.min and
> UIntType.max.
>
> That introduces less breaking change, creates less divergence with the
> C++11 standard, and preserves more flexibility for the future.

Good idea - static assert is your friend. -- Andrei


More information about the Digitalmars-d mailing list