Table of Contents

Class X931SecureRandom

Namespace
Org.BouncyCastle.Crypto.Prng
Assembly
BouncyCastle.Cryptography.dll
public class X931SecureRandom : SecureRandom
Inheritance
X931SecureRandom
Inherited Members

Methods

GenerateSeed(int)

public override byte[] GenerateSeed(int numBytes)

Parameters

numBytes int

Returns

byte[]

GenerateSeed(Span<byte>)

public override void GenerateSeed(Span<byte> seed)

Parameters

seed Span<byte>

NextBytes(byte[])

Fills the elements of a specified array of bytes with random numbers.

public override void NextBytes(byte[] bytes)

Parameters

bytes byte[]

Exceptions

ArgumentNullException

buffer is null.

NextBytes(byte[], int, int)

public override void NextBytes(byte[] buf, int off, int len)

Parameters

buf byte[]
off int
len int

NextBytes(Span<byte>)

Fills the elements of a specified span of bytes with random numbers.

public override void NextBytes(Span<byte> buffer)

Parameters

buffer Span<byte>

The array to be filled with random numbers.

SetSeed(byte[])

public override void SetSeed(byte[] seed)

Parameters

seed byte[]

SetSeed(long)

public override void SetSeed(long seed)

Parameters

seed long

SetSeed(Span<byte>)

public override void SetSeed(Span<byte> seed)

Parameters

seed Span<byte>