You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like PCGRandomStream to be THE random number generator in the standard library. As such, what should it be called? See also #19602
Also, what will we call the random generator interface when interfaces reach production quality? Footnote: if I am writing a library that needs a random generator, however does not care which one to use, it would be generic over the type that implements the interface.
Rust: has some random number generators and also a trait/interface. All RNGs implement the RngCore trait, as a consequence of which the Rng extension trait is automatically implemented. Secure RNGs may additionally implement the CryptoRng trait. Some generators are OsRng, ThreadRng, StdRng, SmallRng.
Random or random for the class name is acceptable to several core devs.
The text was updated successfully, but these errors were encountered:
We would like PCGRandomStream to be THE random number generator in the standard library. As such, what should it be called? See also #19602
Also, what will we call the random generator interface when interfaces reach production quality? Footnote: if I am writing a library that needs a random generator, however does not care which one to use, it would be generic over the type that implements the interface.
Python: the type name is Random, see https://docs.python.org/3/library/random.html
Rust: has some random number generators and also a trait/interface. All RNGs implement the RngCore trait, as a consequence of which the Rng extension trait is automatically implemented. Secure RNGs may additionally implement the CryptoRng trait. Some generators are OsRng, ThreadRng, StdRng, SmallRng.
Random
orrandom
for the class name is acceptable to several core devs.The text was updated successfully, but these errors were encountered: