Current section
Files
Jump to
Current section
Files
src/gossamer/crypto.ffi.mjs
// src/gossamer/crypto.ffi.ts
import { toResult } from "../utils/result.ffi.mjs";
var get_random_values = (array) => {
return toResult.fromThrows(() => globalThis.crypto.getRandomValues(array));
};
var random_uuid = () => {
return globalThis.crypto.randomUUID();
};
export {
get_random_values,
random_uuid
};