diff options
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) { |