1<<$randbits is not good for randbits=48.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 19 Oct 1998 06:44:19 +0000 (06:44 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 19 Oct 1998 06:44:19 +0000 (06:44 +0000)
p4raw-id: //depot/cfgperl@2017

t/op/rand.t

index c779f9d..a68559f 100755 (executable)
@@ -74,7 +74,7 @@ sub bits ($) {
     # reason that the diagnostic message might get the
     # wrong value is that Config.pm is incorrect.)
     #
-    if ($max <= 0 or $max >= (1 << $randbits)) {       # Just in case...
+    if ($max <= 0 or $max >= (2 ** $randbits)) {# Just in case...
        print "not ok 1\n";
        print "# This perl was compiled with randbits=$randbits\n";
        print "# which is _way_ off. Or maybe your system rand is broken,\n";