UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

7 lines (6 loc) 451 B
/** * @license CC BY-SA 4.0 * @link https://stackoverflow.com/a/8809472/ * @author Briguy37 */ function x(){var x=(new Date).getTime(),e="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=16*Math.random();return x>0?(n=(x+n)%16|0,x=Math.floor(x/16)):(n=(e+n)%16|0,e=Math.floor(e/16)),("x"===r?n:3&n|8).toString(16)})}export{x as generateUUID};