This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
bug in rng.c
- To: gsl-discuss@sourceware.cygnus.com
- Subject: bug in rng.c
- From: Mark Levedahl <mlevedahl@fallschurch.esys.com>
- Date: Mon, 01 Mar 1999 12:11:05 -0500
- Organization: raytheon
The following patch fixes a bug in rng/rng.c in GSL 0.41 -- the bug is
failure to copy the .min field when duplicating a random number
generator state. With this, all rng tests pass under cygwin b20.1 on
NT-4.
*** rng/rng.c.orig Mon Mar 01 12:08:24 1999
--- rng/rng.c Mon Mar 01 12:08:28 1999
***************
*** 29,34 ****
--- 29,35 ----
r->name = T->name;
r->max = T->max;
+ r->min = T->min;
r->size = T->size;
r->set = T->set;
r->get = T->get;
***************
*** 88,93 ****
--- 89,95 ----
r->name = q->name;
r->max = q->max;
+ r->min = q->min;
r->size = q->size;
r->set = q->set;
r->get = q->get;
Mark Levedahl