mdbx-test: add nested testcase.

Related to https://github.com/leo-yuriev/libmdbx/issues/62

Change-Id: I5fee861582987cc11a648a3365b19c28e493317d
This commit is contained in:
Leonid Yuriev
2019-10-09 23:38:44 +03:00
parent 66430fd10d
commit 0f8b2ff399
11 changed files with 358 additions and 29 deletions

View File

@@ -331,6 +331,7 @@ double double_from_upper(uint64_t salt) {
}
bool flipcoin() { return bleach32((uint32_t)entropy_ticks()) & 1; }
bool flipcoin_x2() { return (bleach32((uint32_t)entropy_ticks()) & 3) == 0; }
bool jitter(unsigned probability_percent) {
const uint32_t top = UINT32_MAX - UINT32_MAX % 100;