Changeset 15b05c8


Ignore:
Timestamp:
Jan 4, 2022, 11:06:15 AM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
578ec01c
Parents:
aa0a1ad
Message:

comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/stdlib.cfa

    raa0a1ad r15b05c8  
    1010// Created On       : Thu Jan 28 17:10:29 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Dec 29 15:32:44 2021
    13 // Update Count     : 512
     12// Last Modified On : Mon Jan  3 09:36:27 2022
     13// Update Count     : 519
    1414//
    1515
     
    241241        if ( unlikely( seed == 0 ) ) set_seed( rdtscl() );
    242242        else if ( unlikely( state == 0 ) ) state = seed;
    243         return state = 36973 * (state & 65535) + (state >> 16);
     243        return state = 36969 * (state & 65535) + (state >> 16); // 36969 is NOT prime!
    244244} // LCG
    245245
Note: See TracChangeset for help on using the changeset viewer.