Generates a random uuid* string via crypto.getRandomValues or Math.random()
npm install yyid- Generates a UUID#4-like random string, but in contrast to RFC 4122, omits the static bits
- Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (128bit randomness)
- Uses a cryptographically solid source of randomness, if possible: crypto.getRandomValues
- See yyid-node for a server-side (node.js) version
```
$ npm install yyid
``
$ yarn add yyid
Copy yyid.js from https://raw.githubusercontent.com/janlelis/yyid.js/master/yyid.js
`js``
import yyid from "yyid"
yyid(); // => 'ee1c3727-d589-729b-4ad9-a37f77173730'
YYID is available for more languages, such as Ruby, Elixir, and Rust.