WICG / uuid

UUID V4
Other
63 stars 10 forks source link

refactor: move randomUUID to Crypto #3

Closed bcoe closed 3 years ago

bcoe commented 3 years ago

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).


Preview | Diff