C# Class PeterO.XorShift128Plus

A class that implements a statistically-random byte generator, using Sebastiano Vigna's xorshift128+ RNG as the underlying implementation. By default, this class is safe for concurrent use among multiple threads.
Inheritance: IRandomGen
Show file Open project: peteroupc/CBOR

Public Methods

Method Description
GetBytes ( byte bytes, int offset, int length ) : int
XorShift128Plus ( ) : System

Private Methods

Method Description
NextValue ( ) : long
Seed ( ) : void

Method Details

GetBytes() public method

public GetBytes ( byte bytes, int offset, int length ) : int
bytes byte
offset int
length int
return int

XorShift128Plus() public method

public XorShift128Plus ( ) : System
return System