C# Class StopGuessing.EncryptionPrimitives.StrongRandomNumberGenerator

A utility interface to .NET's cryptographically-strong random number generator (the interface we which .NET provided)
ファイルを表示 Open project: Microsoft/StopGuessing Class Usage Examples

Public Methods

Method Description
Get32Bits ( int mod ) : uint
Get32Bits ( uint mod = null ) : uint
Get64Bits ( long mod ) : ulong
Get64Bits ( ulong mod = null ) : ulong
GetBytes ( int count ) : byte[]
GetBytes ( byte bytes ) : void
GetFraction ( ) : double

Method Details

Get32Bits() public static method

public static Get32Bits ( int mod ) : uint
mod int
return uint

Get32Bits() public static method

public static Get32Bits ( uint mod = null ) : uint
mod uint
return uint

Get64Bits() public static method

public static Get64Bits ( long mod ) : ulong
mod long
return ulong

Get64Bits() public static method

public static Get64Bits ( ulong mod = null ) : ulong
mod ulong
return ulong

GetBytes() public static method

public static GetBytes ( int count ) : byte[]
count int
return byte[]

GetBytes() public static method

public static GetBytes ( byte bytes ) : void
bytes byte
return void

GetFraction() public static method

public static GetFraction ( ) : double
return double