ethers.js/lib.commonjs/crypto/random.d.ts

14 lines
409 B
TypeScript
Raw Normal View History

2023-03-04 04:25:07 +03: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;
}
//# sourceMappingURL=random.d.ts.map