Skip to content

fillBytes

fillBytes(out): void

Defined in: src/secure.ts:182

Fill an existing buffer, with no allocation.

Uint8Array

void

const key = new Uint8Array(32);
fillBytes(key);