2 #include "lfds710_prng_internal.h"
8 /****************************************************************************/
9 void lfds710_prng_init_valid_on_current_logical_core( struct lfds710_prng_state *ps, lfds710_pal_uint_t seed )
11 LFDS710_PAL_ASSERT( ps != NULL );
12 LFDS710_PAL_ASSERT( (lfds710_pal_uint_t) &ps->entropy % LFDS710_PAL_ATOMIC_ISOLATION_IN_BYTES == 0 );
13 // TRD : seed can be any value in its range (unlike for the mixing function)
15 LFDS710_PRNG_ST_MIXING_FUNCTION( seed );
19 LFDS710_MISC_BARRIER_STORE;
21 lfds710_misc_force_store();
30 /****************************************************************************/
31 void lfds710_prng_st_init( struct lfds710_prng_st_state *psts, lfds710_pal_uint_t seed )
33 LFDS710_PAL_ASSERT( psts != NULL );
34 LFDS710_PAL_ASSERT( seed != 0 );
36 LFDS710_PRNG_ST_MIXING_FUNCTION( seed );