-
-
Notifications
You must be signed in to change notification settings - Fork 444
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
Consider renaming RngCore
to BitRng
#1045
Comments
No, I don't think the name is sufficiently better to justify this kind of API churn. We already do have a way of extracting arbitrary amounts of random data: There are some rationales for removing our So... no to all suggestions? |
Even not considering the churn, I disagree that |
So lets close this. |
Looking at the redesign of
numpy.random
, I realized that their API became more similar to ours. TheirGenerator
class is almost equivalent to ourRng
trait, and theirBitGenerator
class is very similar toRngCore + SeedableRng
. I like their names more than ours, becauseBitGenerator
seems more descriptive thanRngCore
. Maybe it is worth the churn to rename it toBitRng
for Rand 1.0?(Other observations are that their API allows for drawing an arbitrary number number of samples, which is more vectorization friendly than our API. It also seems like they deprecated their global RNG! They also added a
SeedSequence
class (based on this), which is similar torand_seeder
.)The text was updated successfully, but these errors were encountered: