Review Board 2.0.15


swig: get rid of m5.internal.random module (swig/random.i)

Review Request #595 - Created March 17, 2011 and submitted

Information
Steve Reinhardt
gem5
Reviewers
Default
ali, gblack, nate, stever
swig: get rid of m5.internal.random module (swig/random.i)

Thanks to swig this was interfering with the standard Python
random module.  The only function in that module was seed(),
which erroneously called srand48().  Moved the function to
m5.internal.core, renamed it seedRandom(), and made it call
random_mt.init() instead.

   
Ship it!
Posted (March 17, 2011, 10:40 a.m.)



  
Ship it!
Posted (March 17, 2011, 12:04 p.m.)