In conversation with a few people, it's been suggested to me that crypto is a better home for randomUUID than the global Window object. Given the close relationship to Crypto.getRandomValues() I agree with this.
Node.js chose the module crypto for their implementation in node/36729.
CC: @domenic (for advice on spec), @jasnell (to keep you in the loop).
In conversation with a few people, it's been suggested to me that
crypto
is a better home forrandomUUID
than the global Window object. Given the close relationship toCrypto.getRandomValues()
I agree with this.Node.js chose the module crypto for their implementation in node/36729.
CC: @domenic (for advice on spec), @jasnell (to keep you in the loop).
Preview | Diff