Filler Class
A helper class to implement IRng methods via either NextUInt32 or NextUInt64. Little Endian order is used where relevant.
Namespace
RandN.Implementation
Base Types
  • object
Filler
object

Syntax

public static class Filler

Remarks

Based off of Rust's rand core crate 0.5.1. https://docs.rs/rand_core/0.5.1/src/rand_core/impls.rs.html

Methods

NameReturn ValueSummary
FillBytesViaNext<TRng>(TRng, Span<byte>)void
Implement FillBytes via NextUInt64 and NextUInt32, little-endian order.
static
FillViaUInt32Chunks(ReadOnlySpan<uint>, Span<byte>)(int consumedUInt32, int filledBytes)
Fills dest with UInt32 chunks from src.
static
FillViaUInt64(ReadOnlySpan<ulong>, Span<byte>)(int consumedUInt64, int filledBytes)
Fills dest with UInt64 chunks from src.
static
NextUInt32ViaUInt64<TRng>(TRng)uint
Implement NextUInt32 via NextUInt64.
static
NextUInt64ViaUInt32<TRng>(TRng)ulong
Implement NextUInt64 via NextUInt32, using Little Endian order.
static