From 279ff64b9ceaf89581b8bd4c59aa5eae6539abfb Mon Sep 17 00:00:00 2001 From: Redmond Urbino Date: Sat, 12 Apr 2008 01:05:40 +0000 Subject: [PATCH] add randomizer seed get and set methods --- panda/src/ode/odeUtil.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/ode/odeUtil.h b/panda/src/ode/odeUtil.h index 6eff97ca06..ffe5d69a9a 100755 --- a/panda/src/ode/odeUtil.h +++ b/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