Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 18:22:35 +02:00
parent 9acb7dadc1
commit c08892459a
8 changed files with 12 additions and 11 deletions

View File

@ -8,7 +8,7 @@ lastUpdated: 2020-10-22T20:24:44+03:00
Generates a UUID in Node.JS.
- Use `crypto.randomBytes()` to generate a UUID, compliant with [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) version 4.
- Use `Number.prototype.toString(16)` to convert it to a proper UUID.
- Use `Number.prototype.toString()` to convert it to a proper UUID (hexadecimal string).
```js
const crypto = require('crypto');