Skip to content
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

replace rand with fastrand #162

Merged
merged 2 commits into from
Jan 8, 2022
Merged

Conversation

Stebalien
Copy link
Owner

Re-opens #118.

At the time the PR was submitted, fastrand was new. But it's been a year now since we switched to
SmallRng and it's still going strong.

While this will slightly increase the build size for crates already depending on rand, fastrand is
really small and has no direct dependencies.

Security: Neither Go nor Python's tempfile name generator use cryptographic randomness, so I'm feeling pretty comfortable sticking with non-cryptographic randomness here.

@Stebalien Stebalien merged commit 09e0b4b into master Jan 8, 2022
@Stebalien Stebalien deleted the ref/replace-rand-with-fastrand branch January 8, 2022 18:54
@Stebalien
Copy link
Owner Author

FYI @joshuarli. Thanks for implementing this and sorry for making you implement the SmallRng version.

I figured I'd take advantage of the fact that I've been an absentee maintainer to reconsider this decision before releasing 3.3.0.

@vks vks mentioned this pull request Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant