Changeset 3ef5905
- Timestamp:
- Sep 3, 2023, 8:20:39 AM (15 months ago)
- Branches:
- master
- Children:
- 5f31bf0
- Parents:
- 6e93819
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/thread.cfa
r6e93819 r3ef5905 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jan 9 08:42:33202313 // Update Count : 10 312 // Last Modified On : Sun Sep 3 07:32:28 2023 13 // Update Count : 104 14 14 // 15 15 … … 229 229 } // set_seed 230 230 231 size_t get_seed() { return __global_random_seed; } 232 231 233 size_t prng( void ) { // [0,UINT_MAX] 232 234 return PRNG_NAME( active_thread()->random_state ); -
libcfa/src/concurrency/thread.hfa
r6e93819 r3ef5905 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 2 11:27:59202313 // Update Count : 3712 // Last Modified On : Sun Sep 3 07:34:43 2023 13 // Update Count : 47 14 14 // 15 15 … … 144 144 // prng 145 145 void set_seed( size_t seed ); 146 size_t get_seed( void ) __attribute__(( warn_unused_result )); 146 147 static inline { 147 148 size_t prng( thread$ & th ) __attribute__(( warn_unused_result )) { return PRNG_NAME( th.random_state ); } // [0,UINT_MAX]
Note: See TracChangeset
for help on using the changeset viewer.