2022-12-03 05:27:06 +03:00
|
|
|
/**
|
|
|
|
* Return %%length%% bytes of cryptographically secure random data.
|
2022-12-10 02:24:58 +03:00
|
|
|
*
|
|
|
|
* @example:
|
|
|
|
* randomBytes(8)
|
|
|
|
* //_result:
|
2022-12-03 05:27:06 +03:00
|
|
|
*/
|
2022-09-05 23:57:11 +03:00
|
|
|
export declare function randomBytes(length: number): Uint8Array;
|
|
|
|
export declare namespace randomBytes {
|
|
|
|
var _: (length: number) => Uint8Array;
|
|
|
|
var lock: () => void;
|
|
|
|
var register: (func: (length: number) => Uint8Array) => void;
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=random.d.ts.map
|