summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-09-01 10:33:33 +0200
committerJim Meyering <meyering@redhat.com>2007-10-07 19:44:07 +0200
commit7eab7d027e624350cc9749dcbb963e2d6d6a9b46 (patch)
treecfd9638327c8b88d8feb0b15e3d69718c1051bbf /ChangeLog
parent58a7ead41d056909784bfab9323c5f44f577d3d0 (diff)
downloadcoreutils-7eab7d027e624350cc9749dcbb963e2d6d6a9b46.tar.xz
Make tempname more random, via the randint module.
* gl/modules/tempname (Depends-on): Add randint and stdbool. * gl/lib/tempname.c: Include randint.h and stdbool.h. (uint64_t): Remove definition. Not needed. [_LIBC] (RANDOM_BITS): Remove this block, now that we have proper random bits. (check_x_suffix): New function. (gen_tempname_len): Rename from __gen_tempname. Add a parameter, x_suffix_len, telling how many X's there must be at the end of the template. Use pseudo-random numbers all the way, rather than adding 7777 from one iteration to the next. (__gen_tempname): New function, to call gen_tempname_len, requiring a suffix length of 6. * gl/lib/tempname.h: Add prototype for gen_tempname_len. Signed-off-by: Jim Meyering <meyering@redhat.com>
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cb2e78095..cfd3f3983 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
2007-10-07 Jim Meyering <meyering@redhat.com>
+ Make tempname more random, via the randint module.
+ * gl/modules/tempname (Depends-on): Add randint and stdbool.
+ * gl/lib/tempname.c: Include randint.h and stdbool.h.
+ (uint64_t): Remove definition. Not needed.
+ [_LIBC] (RANDOM_BITS): Remove this block, now that we have proper
+ random bits.
+ (check_x_suffix): New function.
+ (gen_tempname_len): Rename from __gen_tempname.
+ Add a parameter, x_suffix_len, telling how many X's there must be at
+ the end of the template.
+ Use pseudo-random numbers all the way, rather than adding 7777
+ from one iteration to the next.
+ (__gen_tempname): New function, to call gen_tempname_len, requiring a
+ suffix length of 6.
+ * gl/lib/tempname.h: Add prototype for gen_tempname_len.
+
Convert coreutils' rand*.{c,h,m4} into modules.
First step: move these files to gl/lib:
* lib/rand-isaac.c, lib/rand-isaac.h