+ {
+ char *cp = (char *) rnd_base64;
+ /* Try to make the base64 string look a little more like a
+ hostname by replacing + with - and / with _. Also, the
+ format string inserts a couple of dots. */
+ for ( ; *cp; ++cp) {
+ char *plus, *slash;
+ if ((plus = strchr (cp, '+'))) {
+ *plus = '-';
+ } else if ((slash = strchr (cp, '/'))) {
+ *slash = '_';
+ }
+ }
+ }
+
+ /* gettimeofday() and getpid() shouldn't fail on POSIX platforms. */