]> git.donarmstrong.com Git - mothur.git/blobdiff - metastats2.c
testing 1.14.0
[mothur.git] / metastats2.c
index b22938af69282857aa354c4e55ec2c30a4921d8f..bbea3ce8deacf3debe2b6f5adfc909e944862345 100644 (file)
@@ -409,11 +409,11 @@ void permute_array(int *array, int n) {
   
   if (! seeded) {
     seeded = 1;
-    srandom(time(NULL));
+    srand(time(NULL));
   }
   
   for (i = 0; i < n; i++) {
-    int selection = random() % (n - i);
+    int selection = rand() % (n - i);
     int tmp = array[i + selection];
     array[i + selection] = array[i];
     array[i] = tmp;