projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
34b7f12
)
Superparanoia.
Jarkko Hietaniemi [Mon, 8 Sep 2003 12:15:23 +0000 (12:15 +0000)]
p4raw-id: //depot/perl@21085
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
7f38135
..
39122be
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-4422,6
+4422,8
@@
Perl_get_hash_seed(pTHX)
myseed +=
(UV)(Drand01() * (NV)((1 << ((UVSIZE * 8 - RANDBITS))) - 1));
#endif /* RANDBITS < (UVSIZE * 8) */
+ while (myseed == 0) /* Superparanoia. */
+ myseed += (UV)(Drand01() * (NV)UV_MAX);
}
PL_hash_seed_set = TRUE;