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
Afficher le fichier Open project: peteroupc/CBOR

Méthodes publiques

Méthode Description
GetBytes ( byte bytes, int offset, int length ) : int
XorShift128Plus ( ) : System

Private Methods

Méthode Description
NextValue ( ) : long
Seed ( ) : void

Method Details

GetBytes() public méthode

public GetBytes ( byte bytes, int offset, int length ) : int
bytes byte
offset int
length int
Résultat int

XorShift128Plus() public méthode

public XorShift128Plus ( ) : System
Résultat System