Sha256: ac38993a35d0132a6f2bf45c4dde2a1deb92c72efcd3d9acd1e4496aa0d51bba

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

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 */

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
htmldoc_remote_compile_wrapper-0.9 src/htmldoc-1.8.28.patch