UNPKG

@biconomy/modules

Version:

This package provides different validation modules/plugins for ERC4337 compatible modular account

15 lines 513 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateRandomHex = void 0; // small uid generator, hex: 0-9, a-f (10 chars) const generateRandomHex = () => { const hexChars = "0123456789abcdef"; let result = ""; for (let i = 0; i < 10; i++) { const randomIndex = Math.floor(Math.random() * hexChars.length); result += hexChars[randomIndex]; } return result; }; exports.generateRandomHex = generateRandomHex; //# sourceMappingURL=Uid.js.map