Get rid of the Random context and add the support directly to python.
authorNathan Binkert <binkertn@umich.edu>
Sat, 10 Feb 2007 00:44:02 +0000 (16:44 -0800)
committerNathan Binkert <binkertn@umich.edu>
Sat, 10 Feb 2007 00:44:02 +0000 (16:44 -0800)
commit63a82400596b9331d1babe88624f97209286d0b9
tree5090e48bcb29d8a41e6ddc44549dc4f0ee221a9a
parent81c5d0e3d86cc31227f88e10f66ebfbd37f63ce8
Get rid of the Random context and add the support directly to python.
We don't currently use randomness much, so I didn't go too far, but
in the future, we may want to actually expose the random number values
themselves to python.  For now, I'll at least let you seed it.
While we're at it, clean up a clearly bad way for generating random
doubles.

--HG--
extra : convert_revision : df2aa8b58dd0d9c2a7c771668a760b2df8db1e11
src/SConscript
src/base/random.cc
src/base/random.hh
src/python/SConscript
src/python/swig/random.i [new file with mode: 0644]