I do think that the breakage of srand($seed) between 5.20 and earlier perls should have been spelled out in the srand documentation ... probably worth a bug report from someone who cares.
As documented in the 5.20 delta:
rand now uses a consistent random number generator Previously perl would use a platform specific random number generator, varying between the libc rand(), random() or drand48(). This meant that the quality of perl's random numbers would vary from platform to platform, from the 15 bits of rand() on Windows to 48-bits on POSIX platforms such as Linux with drand48(). Perl now uses its own internal drand48() implementation on all platforms. This does not make perl's rand cryptographically secure.
The effect of srand was platform specific. Ie different between Windows & *nix. And that is the cause of the failures for the obfu.
From 5.20 on, that problem goes away because of the built-in rand/srand rather inheriting them from the platform C compiler implementation.
In reply to Re^7: Late PM, 12/24/2014 & all year long
by BrowserUk
in thread Late PM, 12/24/2014 & all year long
by ww
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |