blob: 2100093243d04aed97e5a45cd9c0d783df702512 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- lib/cache.c.orig Fri Jul 20 21:26:19 2001
+++ lib/cache.c Wed Jan 2 13:54:45 2002
@@ -45,7 +45,7 @@
}
g_free (tempstr);
- srand (time (NULL));
+ srandomdev();
tempstr = NULL;
cachefile = NULL;
do
@@ -57,7 +57,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);
}
|