diff options
author | 2024-03-14 11:54:55 -0700 | |
---|---|---|
committer | 2024-04-29 12:50:42 -0700 | |
commit | 73369acd9fbdf6cbf3029cace886abcc626f46ad (patch) | |
tree | bf1452726af1fc9e564e86c6e9ec1887b6da4296 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: selftests: Provide a global pseudo-RNG instance for all tests (diff) | |
download | wireguard-linux-73369acd9fbdf6cbf3029cace886abcc626f46ad.tar.xz wireguard-linux-73369acd9fbdf6cbf3029cace886abcc626f46ad.zip |
KVM: selftests: Provide an API for getting a random bool from an RNG
Move memstress' random bool logic into common code to avoid reinventing
the wheel for basic yes/no decisions. Provide an outer wrapper to handle
the basic/common case of just wanting a 50/50 chance of something
happening.
Link: https://lore.kernel.org/r/20240314185459.2439072-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions