diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-13 22:59:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-13 22:59:33 +0000 |
commit | bbdc8261f84c22c8c82cc51fa84c70efb1b7ab99 (patch) | |
tree | 6adb7cdaf0b597a9f027b2d9112f25c5cc45cdec /sysdeps/posix/mkstemp.c | |
parent | 2aea1d796ea60b9e49d12257dc2a94bf3dd4ef26 (diff) | |
download | glibc-bbdc8261f84c22c8c82cc51fa84c70efb1b7ab99.tar.gz glibc-bbdc8261f84c22c8c82cc51fa84c70efb1b7ab99.tar.xz glibc-bbdc8261f84c22c8c82cc51fa84c70efb1b7ab99.zip |
Update.
1998-04-13 Ulrich Drepper <drepper@cygnus.com> * sysdeps/posix/mktemp.c: Increment `value' in a way which touches all needed 36 bits. * sysdeps/posix/mkstemp.c: Likewise.
Diffstat (limited to 'sysdeps/posix/mkstemp.c')
-rw-r--r-- | sysdeps/posix/mkstemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/mkstemp.c b/sysdeps/posix/mkstemp.c index b3c8b64021..3d8be9cc9c 100644 --- a/sysdeps/posix/mkstemp.c +++ b/sysdeps/posix/mkstemp.c @@ -53,7 +53,7 @@ mkstemp (template) /* Get some more or less random data. */ __gettimeofday (&tv, NULL); - value += tv.tv_usec | getpid (); + value += ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec ^ getpid (); for (count = 0; count < TMP_MAX; ++count) { |