The blog of dlaa.me · Mar 3, 2020
Existence is random [JavaScript code to efficiently generate a random (version 4) UUID]
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
A few months ago, I dashed out a JavaScript function to efficiently generate a random (version 4) UUID per RFC 4122 . This was inspired by code I saw for the same purpose that was not especially efficient - or random. (For more on randomness in JavaScript, see my post about polyfilling Math.random() .) My UUID generator uses crypto.getRandomValues() for the best randomness and tries to do as…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.