Changeset 8a3d5e7 for libcfa/src
- Timestamp:
- Dec 3, 2022, 5:56:57 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- aadb0c8
- Parents:
- a84f643
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/stdlib.cfa
ra84f643 r8a3d5e7 10 10 // Created On : Thu Jan 28 17:10:29 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Nov 30 18:14:05202213 // Update Count : 62 212 // Last Modified On : Sat Dec 3 17:14:13 2022 13 // Update Count : 623 14 14 // 15 15 … … 229 229 __attribute__((visibility("hidden"))) PRNG_STATE_T __global_random_state; // sequential only 230 230 231 void set_seed( size_t seed ) { __global_random_seed = seed; PRNG_SET_SEED( __global_random_state, seed ); PRNG_NAME( __global_random_state ); } 231 void 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 } 232 236 size_t get_seed() { return __global_random_seed; } 233 237 size_t prng( void ) { return PRNG_NAME( __global_random_state ); } // [0,UINT_MAX]
Note: See TracChangeset
for help on using the changeset viewer.