Skip to main content

RandomInner

Namespace: IotaSdk

A typed view of the 0x2::random::RandomInner state held in the dynamic field of the [Random] singleton.

public class RandomInner : IRandomInner, System.IDisposable

Inheritance ObjectRandomInner
Implements IRandomInner, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

RandomInner(UInt64)

public RandomInner(ulong pointer)

Parameters

pointer UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

Epoch()

public ulong Epoch()

Returns

UInt64

RandomBytes()

public Byte[] RandomBytes()

Returns

Byte[]

RandomnessRound()

The randomness round the current random_bytes were produced for.

public ulong RandomnessRound()

Returns

UInt64

Version()

public ulong Version()

Returns

UInt64

TryFromBcs(Byte[])

Decode a RandomInner from raw BCS bytes.

There is no object-based constructor: the state is stored as a dynamic field of the 0x8 wrapper, not as a top-level object with its own type tag.

public static RandomInner TryFromBcs(Byte[] bytes)

Parameters

bytes Byte[]

Returns

RandomInner

Exceptions

SdkFfiException