4 /* This assumes that a check for the
5 template size has already been made */
6 char *__randname(char *template)
12 __clock_gettime(CLOCK_REALTIME
, &ts
);
13 r
= ts
.tv_nsec
*65537 ^ (uintptr_t)&ts
/ 16 + (uintptr_t)template;
14 for (i
=0; i
<6; i
++, r
>>=5)
15 template[i
] = 'A'+(r
&15)+(r
&16)*2;