]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/sg_random.h
Canvas: fix element mouse hit detection with OSG 3.3.2.
[simgear.git] / simgear / math / sg_random.h
index 51fefb65001d71f596af3f62ea1968764fc899c9..aa084a6362439b50063ec9a94bd6ab8552bc8fb5 100644 (file)
@@ -47,6 +47,13 @@ typedef struct {unsigned int array[MT_N]; int index; } mt;
  */
 void mt_init(mt *mt, unsigned int seed);
 
+/**
+ * Initialize a new MT state with a seed that only
+ * changes every 10 minutes.  Used to synchronize
+ * multi-process deployments.
+ */
+void mt_init_time_10(mt *mt);
+
 /**
  * Generate a new 32-bit random number based on the given MT state.
  */