]> Savannah Git Hosting - gnulib.git/commitdiff
tempname: Fix a comment.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Aug 2022 21:21:05 +0000 (23:21 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 31 Aug 2022 23:26:50 +0000 (01:26 +0200)
* lib/tempname.c (try_tempname_len): Use of entropy makes the function
more, not less, secure.

ChangeLog
lib/tempname.c

index 3e6ec7e85fdf44e67f25cd9a9209f679f3502892..1caa8e5d1fb8c508e7c3ec0e79081df1beef7dd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 75a939e571ecb693a6da8d80d12f6cee2fa837ec..e6520191d7ebe0f607b54e7c83e4f54bd1f8c547 100644 (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;