[Issue 1831] Random seeding appears not to work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 13 10:43:35 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1831
andrei at metalanguage.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from andrei at metalanguage.com 2008-02-13 12:43 -------
unpredictableSeed works properly (except that it will be changed to return uint
instead of ulong in the next releast). You should just change your constructor
to:
this()
{
...
rnd = Random(<seed>);
roll();
}
so it doesn't define an automatic variable of the same name as the member.
--
More information about the Digitalmars-d-bugs
mailing list