Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce Math.getRandomValues() #33

Merged
merged 3 commits into from
Oct 29, 2019
Merged

feat: introduce Math.getRandomValues() #33

merged 3 commits into from
Oct 29, 2019

Conversation

bcoe
Copy link
Collaborator

@bcoe bcoe commented Oct 12, 2019

Coming out of conversations in #25, and #31, I would like to advocate that the best option I've heard so far for facilitating the need for a mockable, secure source of randomness, to act as a foundation for UUID algorithms, would be the introduction of an API identical to crypto.getRandomValues().

I'm looping in a couple fo the folks who have worked on the Web Cryptography API, to see if they have any additional advice 😄 ....

@mwatson (@mwatson2), @plehegar, to give you some context, we're working on a proposal to add cryptographically secure UUIDs to ECMAScript, and the idea has been floated that we use an API resembling crypto.getRandomValues() for the foundation of the algorithm.

see: #25, #31, #32

@bcoe
Copy link
Collaborator Author

bcoe commented Oct 12, 2019

sorry for the spam @mwatson, meant to loop @mwatson2 into this thread.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@bcoe
Copy link
Collaborator Author

bcoe commented Oct 16, 2019

@littledan @ljharb any opinions on this topic, I was wondering if there's prior art with regards to adopting a recommendation from W3C.

@ljharb
Copy link
Member

ljharb commented Oct 16, 2019

Not that I know of, but I'd expect to see the spec for it upstreamed, ie not have 262 just point to HTML.

@littledan
Copy link
Member

Yes, I am all for this, but let's work closely with the WebCrypto people here. Do we want this to be the same function, or a similar function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants