17
17
* You should have received a copy of the GNU General Public License
18
18
* along with this program; if not, write to the Free Software
19
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
22
#include "common/random.h"
26
23
#include "common/system.h"
32
30
// Use system time as RNG seed. Normally not a good idea, if you are using
33
31
// a RNG for security purposes, but good enough for our purposes.
35
33
uint32 seed = g_system->getMillis();
39
42
void RandomSource::setSeed(uint32 seed) {