summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/temp/__randname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/temp/__randname.c b/src/temp/__randname.c
index 1425badc..e9b970f1 100644
--- a/src/temp/__randname.c
+++ b/src/temp/__randname.c
@@ -11,7 +11,7 @@ char *__randname(char *template)
unsigned long r;
__clock_gettime(CLOCK_REALTIME, &ts);
- r = ts.tv_nsec + __pthread_self()->tid * 65537UL;
+ r = ts.tv_sec + ts.tv_nsec + __pthread_self()->tid * 65537UL;
for (i=0; i<6; i++, r>>=5)
template[i] = 'A'+(r&15)+(r&16)*2;