This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug in rng.c


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]