From fbb2d9de15df27c26a1c17fbd714c54597e92677 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 17 Nov 2003 12:20:11 +0000 Subject: Preparing for 1.9.2 release. --- common/ChangeLog | 2 ++ common/mkdtemp.c | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/ChangeLog b/common/ChangeLog index da80507f2..2344868a7 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,5 +1,7 @@ 2003-11-14 Werner Koch + * mkdtemp.c (mkdtemp): Use gcry_create_nonce. + * cryptmiss.c: Removed. 2003-11-13 Werner Koch diff --git a/common/mkdtemp.c b/common/mkdtemp.c index 5347b9cb4..abe731e0a 100644 --- a/common/mkdtemp.c +++ b/common/mkdtemp.c @@ -66,11 +66,8 @@ char *mkdtemp(char *template) idx=0; - /* Using really random bits is probably overkill here. The - worst thing that can happen with a directory name collision - is that the function will return an error. */ - - randombits = gcry_random_bytes (4*remaining, GCRY_WEAK_RANDOM); + randombits = gcry_xmalloc (4*remaining); + gcry_create_nonce (randombits, 4*remaining); while(remaining>1) { -- cgit v1.2.3