summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/tempname.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 03:33:06 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 03:33:06 +0000
commitbd7bace793536f027790396d6358c14299e8595b (patch)
treedcc993baefecea2b27019336c4502e61d49b98c5 /libc/misc/internals/tempname.c
parent7608c85140162446c3830421eb94ae42a1bbb893 (diff)
downloaduClibc-alpine-bd7bace793536f027790396d6358c14299e8595b.tar.bz2
uClibc-alpine-bd7bace793536f027790396d6358c14299e8595b.tar.xz
Big merge from trunk. Stop the madness!
Diffstat (limited to 'libc/misc/internals/tempname.c')
-rw-r--r--libc/misc/internals/tempname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/internals/tempname.c b/libc/misc/internals/tempname.c
index 360c76879..99a8ac0d8 100644
--- a/libc/misc/internals/tempname.c
+++ b/libc/misc/internals/tempname.c
@@ -146,7 +146,7 @@ static void brain_damaged_fillrand(unsigned char *buf, unsigned int len)
uint32_t high, low, rh;
static uint64_t value;
gettimeofday(&tv, NULL);
- value += ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec ^ getpid();
+ value += ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec ^ __getpid();
low = value & UINT32_MAX;
high = value >> 32;
for (i = 0; i < len; ++i) {