From fc89ca81c572f93dce57546c3a9184f6afcf251b Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 24 Jun 2012 14:05:18 -0700 Subject: [PATCH] =?utf8?q?perldiag:=20Document=20=E2=80=98Integer=20overfl?= =?utf8?q?ow=20in=20srand=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pod/perldiag.pod | 9 +++++++++ t/porting/diag.t | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 920b74c..22d8d5c 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -2299,6 +2299,15 @@ transparently promotes all numbers to a floating point representation internally--subject to loss of precision errors in subsequent operations. +=item Integer overflow in srand + +(S overflow) The number you have passed to srand is too big to fit +in your architecture's integer representation. The number has been +replaced with the largest integer supported (0xFFFFFFFF on 32-bit +architectures). This means you may be getting less randomness than +you expect, because different random seeds above the maximum will +return the same sequence of random numbers. + =item Integer overflow in version =item Integer overflow in version %d diff --git a/t/porting/diag.t b/t/porting/diag.t index 35a0447..f072bbd 100644 --- a/t/porting/diag.t +++ b/t/porting/diag.t @@ -425,7 +425,6 @@ Illegal character %sin prototype for %s : %s Illegal hexadecimal digit '%c' ignored Illegal octal digit '%c' ignored Infinite recursion in regex -Integer overflow in srand internal %p might conflict with future printf extensions Invalid argument to sv_cat_decode Invalid range "%c-%c" in transliteration operator -- 1.8.3.1