Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

In initialize, do the initrng() and tag population separately, just i…

…n case

someone really wants to do multiple initialize/deallocate cycles.
  • Loading branch information...
commit 0af211ea94fed4257a7cfd3e29daa24782ee589e 1 parent 7be4b05
authored January 03, 2011

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  setup.c
6  setup.c
@@ -19,14 +19,18 @@
19 19
 #include "tags.h"
20 20
     
21 21
 static int need_to_setup = 1;
  22
+static int need_to_initrng = 1;
22 23
 
23 24
 void
24 25
 mkd_initialize()
25 26
 {
26 27
 
  28
+    if ( need_to_initrng ) {
  29
+	need_to_initrng = 0;
  30
+	INITRNG(time(0));
  31
+    }
27 32
     if ( need_to_setup ) {
28 33
 	need_to_setup = 0;
29  
-	INITRNG(time(0));
30 34
 	mkd_prepare_tags();
31 35
     }
32 36
 }

0 notes on commit 0af211e

Please sign in to comment.
Something went wrong with that request. Please try again.