diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-08-08 00:29:46 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-08-08 00:30:55 -0700 |
commit | 8e2767a3f0c279d355f067e53be2c63173959eb1 (patch) | |
tree | afb264f29464035786e2994bba08ec89987a79ca /gl/lib | |
parent | bbcf3abc2c76456dac47743f8a228d403f4dc9ea (diff) | |
download | coreutils-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.diff | 2 |
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; |