diff options
author | Andy Wingo <wingo@pobox.com> | 2010-07-26 16:36:15 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-07-26 16:36:15 +0200 |
commit | a2a95453eb62dc489e6376f8e987db668837ba14 (patch) | |
tree | fa89aa22d3bd6a03631e0fd9193816b646ad0c2e /libguile/vm-engine.c | |
parent | 1d454874c14423072e0b0e9ab7aaaaac81d376e0 (diff) | |
download | guile-a2a95453eb62dc489e6376f8e987db668837ba14.tar.gz |
rstates point to rngs
* libguile/random.h (scm_t_rstate): Include the rng in the rstate, so we
can actually have multiple rngs. Instead of reserved0 / reserved1,
reserve a double explicitly for scm_c_normal01.
(scm_c_uniform32): Change to call the rstate's rng.
* libguile/random.c: Change to access an rstate's rng through its rng
pointer.
(scm_c_normal01): Instead of a flag and a next double, just check that
the double is equal to 0.0. Excluding one value shouldn't affect the
distribution, right?
Diffstat (limited to 'libguile/vm-engine.c')
0 files changed, 0 insertions, 0 deletions