Changeset 3ff64cb for libcfa/src


Ignore:
Timestamp:
Dec 11, 2022, 9:00:36 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
25ef81d
Parents:
ac8b016
Message:

add missing parenthesis in KISS PRNG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/random.hfa

    rac8b016 r3ff64cb  
    1010// Created On       : Fri Jan 14 07:18:11 2022
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Dec  9 17:23:49 2022
    13 // Update Count     : 170
     12// Last Modified On : Sun Dec 11 18:43:58 2022
     13// Update Count     : 171
    1414//
    1515
     
    280280        jsr ^= (jsr << 5);
    281281        jcong = 69069 * jcong + 1234567;
    282         return ((ret.z << 16 + ret.w) ^ ret.jcong) + ret.jsr;
     282        return (((ret.z << 16) + ret.w) ^ ret.jcong) + ret.jsr;
    283283} // kiss_64
    284284
Note: See TracChangeset for help on using the changeset viewer.