method IRuntimeServices.randomBytes
IRuntimeServices.randomBytes(length: number): Uint8Array

Generates cryptographically secure random bytes.

Parameters

length: number

Number of bytes

Return Type

The random bytes

Usage

import { type IRuntimeServices } from "common/src/index.ts";