0

Closed

Add Get...() methods to SecureRandom

description

The NextBytes() method is a little clunky:
 
var values = new byte[8];
random.NextBytes(values);
 
Something like this would be nicer:
 
var values = random.GetBytes(8);
 
One less line of code :)
 
Similar methods (GetInts, GetDoubles) could also be created.
Closed May 21, 2009 at 5:49 AM by jasonrbock

comments