bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] FEATURE REQUEST: Modifications to epc display


From: Joern Thyssen
Subject: Re: [Bug-gnubg] FEATURE REQUEST: Modifications to epc display
Date: Thu, 22 Apr 2004 19:07:55 +0000
User-agent: Mutt/1.4.2.1i

On Thu, Apr 22, 2004 at 01:32:20PM +0000, Joern Thyssen wrote
> 
> I wouldn't use stack. Instead, everywhere we use a RNG we keep a record
> of private information for the RNG. For example, currently the M-T RNG
> uses a global array long mt[624]. We could put this array (and a few
> other variables used for M-T) into a struct which we pass on every call
> to genrand. This way it's possible to use several instances of the M-T
> RNG. The same is possible BBS, ISAAC, and MD5. For ANSI and BSD we've no
> access to the interval variables for the RNG unless we pull out the code
> from libc, modify it and put it into gnubg. For the manual dice and
> random.org, dice from file there are no issues. 

I'm just about to commit such code, so the rollout RNG, the interactive
play RNG, and OSR RNG are kept as separate as possible, e.g., it's
possible to use different seeds for all three. This only works for the
Mersenne-Twiser, BBS, ISAAC, MD5, and dice-from-file RNGs. It could
easily be extended to the random.org RNG, but that's hardly worthwhile
the effort. 

Jørn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]