Travis build: 468

This commit is contained in:
Travis CI
2017-12-29 08:15:12 +00:00
parent 70e7308634
commit 00e595cff0
3 changed files with 79 additions and 39 deletions

View File

@ -5,7 +5,7 @@ Generates a UUID in Node.JS.
Use `crypto` API to generate a UUID, compliant with [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) version 4.
```js
const crypto = require("crypto");
const crypto = require('crypto');
const UUIDGeneratorNode = () =>
([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c =>
(c ^ (crypto.randomBytes(1)[0] & (15 >> (c / 4)))).toString(16)