Random number generation #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use algorithms like PCG for random number generation. By the time this gets implemented, there may be even better algorithms for fast random number generation. Implement those too, and make whichever one is the best the default implementation.
References:
Done via std/crypto/rand and std/uuid (which uses std/crypt/rand). Implements std.crypto.rand.entropy, along-side pcg.
I'm gonna leave this open for now, but I think we can start documenting the standard library since you've begun implementing it. This issue can be closed when the documentation for the implemented RNGs has been written.
Maybe
std/uuidshould bestd/crypto/uuid, since I think it makes sense to put all the cryptography-related stuff together?The reason this was a separate issue was because I assumed the normal random number generation would be separate from the CSPRNG, but if you've implemented both with one algorithm, then that now links #6 to this as well.
std/crypto should be specific to cryptological stuff, ie, encrypt, decrypt, entropy, etc. std/uuid just uses it as a dep, so I don't think it makes sense to put it there