Browse Source

add randomizer seed get and set methods

Redmond Urbino 18 years ago
parent
commit
279ff64b9c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/ode/odeUtil.h

+ 4 - 0
panda/src/ode/odeUtil.h

@@ -49,6 +49,10 @@ PUBLISHED:
 
   // RAU we can't access OC_infinity as constants are not exposed in python
   static dReal get_infinity() {return OC_infinity;};
+
+  static int rand_get_seed() {return dRandGetSeed();};
+
+  static void rand_set_seed(int s) {dRandSetSeed(s);};
 };
 
 #endif