David Rose 16 years ago
parent
commit
e2c1394007
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/plugin_npapi/startup.cxx

+ 4 - 0
direct/src/plugin_npapi/startup.cxx

@@ -164,6 +164,10 @@ NP_Initialize(NPNetscapeFuncs *browserFuncs,
   }
 #endif
 
+  // Seed the lame random number generator in rand(); we use it to
+  // select a mirror for downloading.
+  srand((unsigned int)time(NULL));
+
   return NPERR_NO_ERROR;
 }