mdbx-tests: переделка seed/salt ГПСЧ для более удобного контроля и воспроизведения тестов.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-01-09 20:44:44 +03:00
parent a994a9bbcc
commit 3c60e1e94c
5 changed files with 6 additions and 3 deletions

View File

@@ -770,7 +770,7 @@ static bool execute_thunk(const actor_config *const_config, const mdbx_pid_t pid
size_t iter = 0;
do {
if (iter) {
prng_seed(config.params.prng_seed += INT32_C(0xA4F4D37B));
prng_salt(iter);
log_verbose("turn PRNG to %u", config.params.prng_seed);
}
iter++;