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
THREE.MathUtils: added seededRandom() method #16655
Conversation
3193dc1
to
d5ae07f
Compare
Similar code was removed from the examples here: #16576 And now you want to add it to the core? Um, does not seem logic to me... |
@Mugen87 If you don't want users of the library to have access to this method, I'll close this. |
No offense, I'm just irritated by the PR. I think we made a decision in #16576 to not add such code to the lib. Anyway, I don't feel strong about this. If you think it's a valuable addition, I won't block it. |
Please don't be. I was not intending to annoy you. I thought I was doing what you suggested when you said:
But I guess you were suggesting to move it to We can do that, merge this, or close this. I don't care. |
Yeah, in this sentence I was referring to |
I actually wanted to remove |
Trying again... |
We just need a compelling use case. |
var x = crypto.getRandomValues( new Uint32Array(1) )[0] / 0xFFFFFFFF; Should work in any browser with webgl. Performance only twice worse, because it’s cryptography safe PRNG and supports an arrays. |
Closing again... |
@WestLangley can we call this |
Oh, can't reopen the PR because the branch is gone. |
@mrdoob Maybe Similar nomenclature is used here: https://github.com/davidbau/seedrandom |
Hmm, |
Actually, I think |
Thanks! |
This is useful in generating repeatable results in an existing example.