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 Object → RandomInner
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
RandomBytes()
public Byte[] RandomBytes()
Returns
RandomnessRound()
The randomness round the current random_bytes were produced for.
public ulong RandomnessRound()
Returns
Version()
public ulong Version()
Returns
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[]