gossamer/crypto

Values

pub fn get_random_values(
  array: uint8_array.Uint8Array,
) -> Result(uint8_array.Uint8Array, js_error.JsError)

Fills array with cryptographically strong random values. Returns an error if array’s byte length exceeds the implementation’s quota (typically 65_536 bytes).

pub fn random_uuid() -> String

Generates a random UUID (version 4).

Search Document