Last night, I got curious if I could generate an RFC-compliant UUID4 in #JavaScript without external libraries. The obvious solution is:
crypto.randomUUID();
But how fast can I go if security isn't a concern?
I stumbled upon a StackOverflow question on exactly this topic with various approaches.
Here is my proposal, which seems to consistently come out on top.
I first started with a for-loop, then after unrolling, started tweaking.
