UNPKG

n-digit-token

Version:

Cryptographically secure pseudo-random token of n digits

8 lines (7 loc) 245 B
import type { Options } from './types'; /** * Generate secure random bytes of given length. * @param {number} length * @return {string} bytes in hex */ export declare const generateSecureBytes: (length: number, options?: Options) => string;