summaryrefslogtreecommitdiff
path: root/gl/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-08-08 00:29:46 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-08-08 00:30:55 -0700
commit8e2767a3f0c279d355f067e53be2c63173959eb1 (patch)
treeafb264f29464035786e2994bba08ec89987a79ca /gl/lib
parentbbcf3abc2c76456dac47743f8a228d403f4dc9ea (diff)
downloadcoreutils-8e2767a3f0c279d355f067e53be2c63173959eb1.tar.xz
mktemp: stir in enough entropy (Bug#6683)
* gl/lib/tempname.c.diff (gen_tempname_len): Use x_suffix_len bytes' worth of entropy, not 8 bytes.
Diffstat (limited to 'gl/lib')
-rw-r--r--gl/lib/tempname.c.diff2
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/lib/tempname.c.diff b/gl/lib/tempname.c.diff
index fcacf53db..3e30c972c 100644
--- a/gl/lib/tempname.c.diff
+++ b/gl/lib/tempname.c.diff
@@ -100,7 +100,7 @@ index 2da5afe..562955a 100644
- }
-#endif
- value += random_time_bits ^ __getpid ();
-+ rand_src = randint_all_new (NULL, 8);
++ rand_src = randint_all_new (NULL, x_suffix_len);
+ if (! rand_src)
+ return -1;