* code from this file in your own programs or libraries.
* Further information on the Mersenne Twister can be found at
* http://www.math.keio.ac.jp/~matumoto/emt.html
- * This code was adapted to glib by Sebastian Wilhelmi <wilhelmi@ira.uka.de>.
+ * This code was adapted to glib by Sebastian Wilhelmi.
*/
/*
#include <math.h>
#include <stdio.h>
+#include <string.h>
#include "glib.h"
-
+#include "gthreadinit.h"
G_LOCK_DEFINE_STATIC (global_random);
static GRand* global_random = NULL;
* initialize some static data in a threadsafe way.
*/
void
-g_rand_init (void)
+_g_rand_thread_init (void)
{
(void)get_random_version ();
}
}
break;
default:
+ random = 0; /* Quiet GCC */
g_assert_not_reached ();
}