Changeset 8a3d5e7 for libcfa/src


Ignore:
Timestamp:
Dec 3, 2022, 5:56:57 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
aadb0c8
Parents:
a84f643
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/stdlib.cfa

    ra84f643 r8a3d5e7  
    1010// Created On       : Thu Jan 28 17:10:29 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Nov 30 18:14:05 2022
    13 // Update Count     : 622
     12// Last Modified On : Sat Dec  3 17:14:13 2022
     13// Update Count     : 623
    1414//
    1515
     
    229229__attribute__((visibility("hidden"))) PRNG_STATE_T __global_random_state; // sequential only
    230230
    231 void set_seed( size_t seed ) { __global_random_seed = seed; PRNG_SET_SEED( __global_random_state, seed ); PRNG_NAME( __global_random_state ); }
     231void set_seed( size_t seed ) {
     232        __global_random_seed = seed;
     233        PRNG_SET_SEED( __global_random_state, seed );
     234        PRNG_NAME( __global_random_state );
     235}
    232236size_t get_seed() { return __global_random_seed; }
    233237size_t prng( void ) { return PRNG_NAME( __global_random_state ); } // [0,UINT_MAX]
Note: See TracChangeset for help on using the changeset viewer.