diff options
author | Werner Koch <[email protected]> | 2003-11-17 12:20:11 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-11-17 12:20:11 +0000 |
commit | fbb2d9de15df27c26a1c17fbd714c54597e92677 (patch) | |
tree | 1db0b1145a5113c06cb88aefcf6d610f1804570d /common/mkdtemp.c | |
parent | 2003-11-16 Moritz Schulte <[email protected]> (diff) | |
download | gnupg-fbb2d9de15df27c26a1c17fbd714c54597e92677.tar.gz gnupg-fbb2d9de15df27c26a1c17fbd714c54597e92677.zip |
Preparing for 1.9.2 release.V1-9-2
Diffstat (limited to '')
-rw-r--r-- | common/mkdtemp.c | 7 |
1 files changed, 2 insertions, 5 deletions
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) { |