projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53905e3
)
1<<$randbits is not good for randbits=48.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 19 Oct 1998 06:44:19 +0000
(06:44 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 19 Oct 1998 06:44:19 +0000
(06:44 +0000)
p4raw-id: //depot/cfgperl@2017
t/op/rand.t
patch
|
blob
|
history
diff --git
a/t/op/rand.t
b/t/op/rand.t
index
c779f9d
..
a68559f
100755
(executable)
--- a/
t/op/rand.t
+++ b/
t/op/rand.t
@@
-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";