*** contrib/pgcrypto/random.orig.c Sun Dec 5 23:55:54 2004 --- contrib/pgcrypto/random.c Sun Dec 5 23:57:22 2004 *************** *** 40,45 **** --- 40,46 ---- #include #include #include + #include static int safe_read(int fd, void *buf, size_t count) *************** *** 85,92 **** { int i; for (i = 0; i < count; i++) ! *dst++ = random(); return i; } --- 86,95 ---- { int i; + srandom(time(NULL)); + for (i = 0; i < count; i++) ! dst[i] = (random() % 255); return i; }