1import crypto from 'crypto' 2 3export default function generateRandomString() { 4 return crypto.createHash('sha1').update(Math.random().toString()).digest('hex') 5}