UNPKG

js-crypto-random

Version:

Universal Module for Secure Random Generator in JavaScript

15 lines (14 loc) 580 B
/** * index.js */ export declare const getRandomBytes: (len: number) => Uint8Array; export declare const getRandomAsciiString: (len: number) => string; export declare const getRandomString: (len: number) => string; export declare const getRandomSampledString: (len: number, candidates: string) => string; declare const _default: { getRandomBytes: (len: number) => Uint8Array; getRandomAsciiString: (len: number) => string; getRandomString: (len: number) => string; getRandomSampledString: (len: number, candidates: string) => string; }; export default _default;