polywrap / random

Interface to the operating system’s random number generator.
MIT License
0 stars 0 forks source link

Initial Implementation #1

Open dOrgJelli opened 1 year ago

dOrgJelli commented 1 year ago

Create an initial implementation, using the provided reference implementations: https://docs.rs/getrandom/latest/getrandom/ https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues https://nodejs.org/api/webcrypto.html#cryptogetrandomvaluestypedarray

cbrzn commented 1 year ago

just saw this https://github.com/Absolucy/nanorand-rs might be worth checking it to see if we wrap it? just thinking out loud here, haven't check it deeply

dOrgJelli commented 1 year ago

Hey @cbrzn, this will need to be a plugin, as it will utilize the OS' random number generation APIs. For examples of this, see the rust getrandom crate's documentation which shows this: https://docs.rs/getrandom/latest/getrandom/