UNPKG

409 BTypeScriptView Raw
1/**
2 * Return %%length%% bytes of cryptographically secure random data.
3 *
4 * @example:
5 * randomBytes(8)
6 * //_result:
7 */
8export declare function randomBytes(length: number): Uint8Array;
9export declare namespace randomBytes {
10 var _: (length: number) => Uint8Array;
11 var lock: () => void;
12 var register: (func: (length: number) => Uint8Array) => void;
13}
14//# sourceMappingURL=random.d.ts.map
\No newline at end of file