]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/sg_random.c
use the proper namespace
[simgear.git] / simgear / math / sg_random.c
index e9004323b2fa93f7d5744005fa71abefb9b70088..d9f6bcb78f9c8642abc3ab32c2c807cd370e00e1 100644 (file)
@@ -59,6 +59,11 @@ void mt_init(mt *mt, unsigned int seed)
     mt->index = MT_N+1;
 }
 
+void mt_init_time_10(mt *mt)
+{
+  mt_init(mt, (unsigned int) time(NULL) / 600);  
+}
+
 unsigned int mt_rand32(mt *mt)
 {
     unsigned int i, y;