In initialize, do the initrng() and tag population separately, just in case

someone really wants to do multiple initialize/deallocate cycles.
This commit is contained in:
david parsons
2011-01-03 11:58:53 -08:00
parent 7be4b053f2
commit 0af211ea94
+5 -1
View File
@@ -19,14 +19,18 @@
#include "tags.h"
static int need_to_setup = 1;
static int need_to_initrng = 1;
void
mkd_initialize()
{
if ( need_to_initrng ) {
need_to_initrng = 0;
INITRNG(time(0));
}
if ( need_to_setup ) {
need_to_setup = 0;
INITRNG(time(0));
mkd_prepare_tags();
}
}