1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

tempname: Fix a comment.

* lib/tempname.c (try_tempname_len): Use of entropy makes the function
more, not less, secure.
This commit is contained in:
Bruno Haible
2022-08-15 23:21:05 +02:00
parent bb52eb3dfb
commit 52ce8e3266
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2022-08-15 Bruno Haible <bruno@clisp.org>
tempname: Fix a comment.
* lib/tempname.c (try_tempname_len): Use of entropy makes the function
more, not less, secure.
2022-08-15 Paul Eggert <eggert@cs.ucla.edu>
tempname: remove incorrect comment
+1 -1
View File
@@ -273,7 +273,7 @@ try_tempname_len (char *tmpl, int suffixlen, void *args,
/* Whether to consume entropy when acquiring random bits. On the
first try it's worth the entropy cost with __GT_NOCREATE, which
is inherently insecure and can use the entropy to make it a bit
less secure. On the (rare) second and later attempts it might
more secure. On the (rare) second and later attempts it might
help against DoS attacks. */
bool use_getrandom = tryfunc == try_nocreate;