/** * Generates a random hexadecimal string of specified length. * * @param length - The length of the hex string to generate (number of hex digits). * @returns A random hexadecimal string (lowercase). * * @throws {Error} If length is NaN. * @throws {Error} If length is negative or not an integer. * * @example * // Generate 8-character hex string * randomHex(8); // 'a3f9c2e1' * * @example * // Generate short hex ID * randomHex(6); // '4d82f1' * * @example * // Generate 32-character hex (MD5-like length) * randomHex(32); // 'b47c9d1e3a5f2c8b6d4e9f1a7c3b5e2d' * * @note Uses Math.random() for non-cryptographic randomness. * @note For cryptographic randomness, use generateRandomBytes from cryptoFunctions. * * @complexity Time: O(n), Space: O(n) where n is length */ export declare function randomHex(length: number): string; //# sourceMappingURL=randomHex.d.ts.map