UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

15 lines (14 loc) 457 B
const y = /* @__PURE__ */ (() => { const o = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"; return () => { const r = crypto.getRandomValues(new Uint8Array(16)); let x = 0; return o.replace(/[xy]/g, (e) => { const t = r[x >> 1], n = (x % 2 ? t >> 4 : t) & 15, c = e == "x" ? n : n & 3 | 8; return x++, c.toString(16); }); }; })(), a = typeof crypto.randomUUID == "function" ? () => crypto.randomUUID() : y; export { a as uuid };