Subject: | Math::Random::Secure |
Date: | Tue, 14 Jun 2016 16:26:03 -0700 |
To: | bug-Math-Random-Secure [...] rt.cpan.org |
From: | Ryan Olson <ryan.t.olson [...] gmail.com> |
The documentation of Math::Random::Secure states:
Will automatically call srand if srand has never been called in this
process or thread.
That seems to imply that srand will be called again after a fork, but that
doesn't seem tob e the case looking at the code:
sub irand (;$) {
my ($limit) = @_;
Math::Random::Secure::srand() if !defined $RNG;
Not sure if that's a documentation bug or a functionality bug, but I assume
one or the other should be fixed. Happy to submit a patch if you have a
repo somewhere I can push to.