-
Notifications
You must be signed in to change notification settings - Fork 71
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
Use irand instead of int rand in Main.pm. #406
Comments
@svenoe , while you are at it cou convert the sub to calling Math::Random::Secure::irand() only once and then convert the result to base 62, that is to a string containing only the 62 characters in |
Yes, I thought about that, although you can call this for variable dictionaries and string lengths, and so some calculating has to be done, and one time won't be enough, if your string exceeds 32bit of information, as I understand it. |
namespace::clean is no new dependency, as it already was required by Moo
I also noted that the namespace |
ARG could cause layer cache invalidation
Tests look fine. Closing the issue. |
According to https://metacpan.org/pod/Math::Random::Secure this should be faster. Kernel/System/Main.pm uses int rand in sub GenerateRandomString.
The text was updated successfully, but these errors were encountered: