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:
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user