You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
8 months ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
|
||
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng
|
||
|
{
|
||
|
/// <remarks>Generic interface for objects generating random bytes.</remarks>
|
||
|
public interface IRandomGenerator
|
||
|
{
|
||
|
/// <summary>Add more seed material to the generator.</summary>
|
||
|
/// <param name="seed">A byte array to be mixed into the generator's state.</param>
|
||
|
void AddSeedMaterial(byte[] seed);
|
||
|
|
||
|
/// <summary>Add more seed material to the generator.</summary>
|
||
|
/// <param name="seed">A long value to be mixed into the generator's state.</param>
|
||
|
void AddSeedMaterial(long seed);
|
||
|
|
||
|
/// <summary>Fill byte array with random values.</summary>
|
||
|
/// <param name="bytes">Array to be filled.</param>
|
||
|
void NextBytes(byte[] bytes);
|
||
|
|
||
|
/// <summary>Fill byte array with random values.</summary>
|
||
|
/// <param name="bytes">Array to receive bytes.</param>
|
||
|
/// <param name="start">Index to start filling at.</param>
|
||
|
/// <param name="len">Length of segment to fill.</param>
|
||
|
void NextBytes(byte[] bytes, int start, int len);
|
||
|
}
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|