askexperts
Version:
AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol
12 lines • 314 B
JavaScript
/**
* Browser implementation of UUID generation
*/
import { bytesToHex, randomBytes } from "@noble/hashes/utils";
/**
* Generate a UUID v4 compatible with browsers
* @returns A random UUID string
*/
export function generateUUID() {
return bytesToHex(randomBytes(16));
}
//# sourceMappingURL=browser.js.map