21 lines
600 B
Diff
21 lines
600 B
Diff
|
bug#510: Fix undefined symbols CUPS_SRAND and CUPS_RAND
|
||
|
https://www.msweet.org/bugs.php?U510
|
||
|
|
||
|
Index: htmldoc-1.8.28/htmldoc/http.c
|
||
|
===================================================================
|
||
|
--- htmldoc-1.8.28.orig/htmldoc/http.c
|
||
|
+++ htmldoc-1.8.28/htmldoc/http.c
|
||
|
@@ -1229,10 +1229,10 @@ httpInitialize(void)
|
||
|
* it is the best we can do (on others, this seed isn't even used...)
|
||
|
*/
|
||
|
|
||
|
- CUPS_SRAND(time(NULL));
|
||
|
+ srand(time(NULL));
|
||
|
|
||
|
for (i = 0; i < sizeof(data); i ++)
|
||
|
- data[i] = CUPS_RAND();
|
||
|
+ data[i] = rand();
|
||
|
|
||
|
RAND_seed(data, sizeof(data));
|
||
|
#endif /* HAVE_GNUTLS */
|