Index: fusl/src/temp/__randname.c |
diff --git a/fusl/src/temp/__randname.c b/fusl/src/temp/__randname.c |
index 464b83d5f95b09b23ecd3c91a1d12641187b2543..f275b5f11d9d2696e58c0cce96fb909b11a4a6f6 100644 |
--- a/fusl/src/temp/__randname.c |
+++ b/fusl/src/temp/__randname.c |
@@ -1,20 +1,19 @@ |
#include <time.h> |
#include <stdint.h> |
-int __clock_gettime(clockid_t, struct timespec *); |
+int __clock_gettime(clockid_t, struct timespec*); |
/* This assumes that a check for the |
template size has already been made */ |
-char *__randname(char *template) |
-{ |
- int i; |
- struct timespec ts; |
- unsigned long r; |
+char* __randname(char* template) { |
+ int i; |
+ struct timespec ts; |
+ unsigned long r; |
- __clock_gettime(CLOCK_REALTIME, &ts); |
- r = ts.tv_nsec*65537 ^ (uintptr_t)&ts / 16 + (uintptr_t)template; |
- for (i=0; i<6; i++, r>>=5) |
- template[i] = 'A'+(r&15)+(r&16)*2; |
+ __clock_gettime(CLOCK_REALTIME, &ts); |
+ r = ts.tv_nsec * 65537 ^ (uintptr_t)&ts / 16 + (uintptr_t) template; |
+ for (i = 0; i < 6; i++, r >>= 5) |
+ template[i] = 'A' + (r & 15) + (r & 16) * 2; |
- return template; |
+ return template; |
} |