File gatling-sslseed.patch of Package gatling

diff -U3 gatling-0.13/gatling.c gatling-0.13.ssl/gatling.c
--- gatling-0.13/gatling.c	2012-11-02 11:31:49.000000000 +0100
+++ gatling-0.13.ssl/gatling.c	2012-12-05 14:28:27.000000000 +0100
@@ -1276,7 +1276,7 @@
 #endif
 
 int main(int argc,char* argv[],char* envp[]) {
-  int s;		/* http socket */
+  int s=-1;		/* http socket */
   int f=-1;		/* ftp socket */
 #ifdef SUPPORT_SMB
   int smbs=-1;		/* smb socket */
@@ -1902,6 +1902,12 @@
 #endif
 #endif
 
+#ifdef SUPPORT_HTTPS
+  if (httpss >= 0) {
+    RAND_load_file("/dev/urandom", 128);
+  }
+#endif
+
 #ifndef __MINGW32__
   if (prepare_switch_uid(new_uid)==-1)
     goto usage;
openSUSE Build Service is sponsored by