// Simple wrapper to give read-only access to IMP's random number generator %{ #include // needed to ensure that the swig wrappers work BOOST_STATIC_ASSERT(sizeof(int) == sizeof(boost::int32_t)); %} namespace boost { typedef int int32_t; } namespace IMP { namespace base { class RandomNumberGenerator { public: void seed(::boost::int32_t x); int operator()(); }; const RandomNumberGenerator random_number_generator; } }