@biconomy/abstractjs
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
11 lines • 360 B
JavaScript
// small uid generator, hex: 0-9, a-f (10 chars)
export 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;
};
//# sourceMappingURL=Uid.js.map