This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
Re: bug in rng.c
- To: Mark Levedahl <mlevedahl@fallschurch.esys.com>
- Subject: Re: bug in rng.c
- From: Brian Gough <bjg@netsci.freeserve.co.uk>
- Date: Mon, 01 Mar 1999 21:56:04 +0000
- CC: gsl-discuss@sourceware.cygnus.com
- References: <36DACA29.BF41BE2A@fallschurch.esys.com>
Good bug report, thanks. I'll incorporate that.
best regards,
Brian Gough
Mark Levedahl wrote:
> 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
- References:
- bug in rng.c
- From: Mark Levedahl <mlevedahl@fallschurch.esys.com>