gossamer/crypto

Values

pub fn get_random_values(
  array: int_typed_array.IntTypedArray,
) -> Result(int_typed_array.IntTypedArray, 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