1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/ftp/gftp/files/patch-ad

21 lines
563 B
Plaintext
Raw Normal View History

--- lib/cache.c.orig Sat Mar 3 17:42:43 2001
+++ lib/cache.c Mon Apr 30 00:16:57 2001
@@ -42,7 +42,7 @@
}
g_free (tempstr);
- srand (time (NULL));
+ srandomdev();
tempstr = NULL;
cachefile = NULL;
do
@@ -54,7 +54,7 @@
g_free (cachefile);
cachefile = g_strdup_printf ("cache%ld",
- 1 + (long) (99999999.0 * rand () /
+ 1 + (long) (99999999.0 * random () /
(RAND_MAX + 1.0)));
tempstr = g_strdup_printf ("%s/%s", cachedir, cachefile);
}