diff -up src/jitterentropy-noise.c.orig src/jitterentropy-noise.c --- src/jitterentropy-noise.c 2021-11-23 15:42:47.809329173 +0100 +++ src/jitterentropy-noise.c 2021-11-23 15:44:19.820499338 +0100 @@ -188,7 +188,7 @@ static void jent_memaccess(struct rand_data *ec, uint64_t loop_cnt) uint32_t u[4]; uint8_t b[sizeof(uint32_t) * 4]; } prngState = { .u = {0x8e93eec0, 0xce65608a, 0xa8d46b46, 0xe83cef69} }; - uint32_t addressMask = ec->memmask; + uint32_t addressMask; /* Ensure that macros cannot overflow jent_loop_shuffle() */ BUILD_BUG_ON((MAX_ACC_LOOP_BIT + MIN_ACC_LOOP_BIT) > 63); @@ -197,6 +197,7 @@ static void jent_memaccess(struct rand_data *ec, uint64_t loop_cnt) if (NULL == ec || NULL == ec->mem) return; + addressMask = ec->memmask; /* * Mix the current data into prngState