From: Paul Eggert Date: Mon, 8 Aug 2011 07:29:46 +0000 (-0700) Subject: mktemp: stir in enough entropy (Bug#6683) X-Git-Tag: v8.13~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e2767a3f0c279d355f067e53be2c63173959eb1;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/gl/lib/tempname.c.diff b/gl/lib/tempname.c.diff index fcacf53dbd..3e30c972c2 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;