UNPKG

crypto-random-prime

Version:

Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.

3 lines (2 loc) 93 B
declare const randomPrime: (bits: number, k?: number) => bigint; export default randomPrime;