Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

random

Module0x0000…0002
Move path
0x0000…0002::random
Functions
2015 public, 0 entry
Structs
3
Friend modules
None
random

Functions20

Structs3

key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.

  • idUID
    innerVersioned
  • seedvector<u8>
    counteru16
    buffervector<u8>
  • versionu64
    epochu64
    randomness_roundu64
    random_bytesvector<u8>

Constants9

Constants are shown the way the code loads them. Bytecode does not keep their names.

SlotValueTypeUseUsed in
00u64Abort codecreateupdate_randomness_state
11u64Abort codecreateload_inner_mutload_inner
22u64Abort codeupdate_randomness_state
33u64Abort codegenerate_u128_in_rangegenerate_u64_in_rangegenerate_u32_in_rangegenerate_u16_in_rangeand 1 more
44u64Abort codeshuffle
532u16Valuegenerate_bytes
665535u64Valueshuffle
70x0000000000000000000000000000000000000000000000000000000000000000addressValuecreateupdate_randomness_state
8"" // interpreted as UTF8 stringvector<u8>Valuecreatenew_generatorgenerate_bytes