Skip to main content
Module

x/inthash/prime.ts>randomPrime

Efficient integer hashing library using Knuth's multiplicative method for Javascript and Typescript, perfect for obfuscating sequential numbers.
Go to Latest
function randomPrime
import { randomPrime } from "https://deno.land/x/inthash@3.0.3/prime.ts";

Parameters

bits: number

Returns

bigint