[][src]Module polymesh::service::native_rng

Host functions to allow native access to OS RNG from Wasm.

Change Log

TODO

Structs

HostFunctions

Provides implementations for the extern host functions.

Functions

fill_bytes

Fills dest with random data, using OsRng.

next_u32

Returns the next random u32 generated by OsRng.

next_u64

Returns the next random u64 generated by OsRng.

try_fill_bytes

Fills dest entirely with random data, using OsRng.