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

14 lines
409 B
TypeScript
Raw Permalink Normal View History

2022-12-02 21:27:06 -05:00
/**
* Return %%length%% bytes of cryptographically secure random data.
2022-12-09 18:24:58 -05:00
*
* @example:
* randomBytes(8)
* //_result:
2022-12-02 21:27:06 -05:00
*/
2022-09-05 16:57:11 -04: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