bug-gsl
[Top][All Lists]
Advanced

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

Re: [Bug-gsl] Minor inaccuracy in comment


From: Patrick Alken
Subject: Re: [Bug-gsl] Minor inaccuracy in comment
Date: Wed, 20 Feb 2019 19:04:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

Thank you, I have corrected this on the git

On 2/19/19 1:46 AM, Chris Hiszpanski wrote:
> Hello,
>
> Noticed a comment in rng/taus113.c is inaccurate -- z_1 is computed from z_0, 
> not the other way around. Patch is provided below.
>
> Chris
>
> diff --git a/rng/taus113.c b/rng/taus113.c
> index 04da6a89..a46248bc 100644
> --- a/rng/taus113.c
> +++ b/rng/taus113.c
> @@ -39,7 +39,7 @@
>      work on architectures where integers are 64-bit.
>
>      The generator is initialized with
> -   zi = (69069 * z{i+1}) MOD 2^32 where z0 is the seed provided
> +   z{i+1} = (69069 * z{i}) MOD 2^32 where z0 is the seed provided
>      During initialization a check is done to make sure that the initial seeds
>      have a required number of their most significant bits set.
>      After this, the state is passed through the RNG 10 times to ensure the



reply via email to

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