question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support native `randomUUID()`

See original GitHub issue

Starting on Node.js 15.6, there’s support for a native randomUUID() implementation, that implements UUID v4. What about checking for its support on https://github.com/uuidjs/uuid/blob/master/src/v4.js and use it when available?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
ctavancommented, Jan 31, 2021

It’s certainly on my list but I’m not sure if and when I’ll manage to work on it. But happy to review a pull request if you are interested in working on it.

0reactions
ctavancommented, Dec 2, 2021

Using native randomUUID unter the hood was added in #600.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crypto.randomUUID() - Web APIs - MDN Web Docs
The randomUUID() method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
Read more >
UUID (Java Platform SE 8 ) - Oracle Help Center
randomUUID. public static UUID randomUUID(). Static factory to retrieve a type 4 (pseudo randomly generated) UUID. The UUID is generated using a ...
Read more >
react-native-uuid - npm
Please note, this library uses pseudo random generator based on top of Math.random . New version with hardware support is WIP. Heavily inspired ......
Read more >
How to Create a UUID in JavaScript using the native crypto ...
Developers can use the native JavaScript crypto library to generate a UUID: crypto.randomUUID() // '5872aded-d613-410e-841f-a681a6aa8d8b' ...
Read more >
The randomUUID method is supported on the web client
The random() method is called once for each position. 2. randomUUID. Chrome now has native support for the uuId method, crypto.randomUUID() , ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found