UNPKG

@tevm/actions

Version:

A typesafe library for writing forge scripts in typescript

9 lines (8 loc) 219 B
/** * @returns {import("@tevm/utils").Hex} */ export const generateRandomId = () => { return `0x${Array.from(crypto.getRandomValues(new Uint8Array(16))) .map((b) => b.toString(16).padStart(2, '0')) .join('')}` }