Blitz logo

Blitz Devel :

From: Tyson Whitehead (twhitehe_at_[hidden])
Date: 2003-09-05 20:58:47


This adds a call to reload() to the MT random number generator (as well as the
previous vector<>::operator[] corrections). This is required to initialize
the iterator I.

An alternative would be to add an I = S.begin() line after resizing S. There
probably is no need to re-scramble the state space after seed does it's
stellar (I hope) job of initializing it from a single int.

(I called reload() because that is what was done in random/mt.h, and I hoped
whoever wrote it knew more about random number generation than me...)

-T

-- 
 Tyson Whitehead  (-twhitehe_at_[hidden] -- WSC-)
 Computer Engineer                        Dept. of Applied Mathematics,
 Graduate Student- Applied Mathematics    University of Western Ontario,
 GnuPG Key ID# 0x8A2AB5D8                 London, Ontario, Canada