2023-03-03 18:25:07 -07:00
|
|
|
/**
|
|
|
|
* Return %%length%% bytes of cryptographically secure random data.
|
|
|
|
*
|
|
|
|
* @example:
|
|
|
|
* randomBytes(8)
|
|
|
|
* //_result:
|
|
|
|
*/
|
|
|
|
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;
|
|
|
|
}
|
2023-04-27 21:19:55 +09:00
|
|
|
//# sourceMappingURL=random.d.ts.map
|