UNPKG

remix-nlux

Version:

Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.

8 lines (7 loc) 291 B
export const uid = () => { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (character) => { const randomValue = Math.random() * 16 | 0; const value = character == 'x' ? randomValue : (randomValue & 0x3 | 0x8); return value.toString(16); }); };