aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/perf_test_util.c
diff options
context:
space:
mode:
authorColton Lewis <[email protected]>2022-11-07 18:22:05 +0000
committerSean Christopherson <[email protected]>2022-11-16 10:09:19 -0800
commitb31f21a7e97eee501db86714868d84377e68e4df (patch)
tree35e3a382bde5ef7b5f8e4e7a29866ec6f83ddd36 /tools/testing/selftests/kvm/lib/perf_test_util.c
parentd886724ea81c6a4dc5e37d4ee09287a31ab8335e (diff)
KVM: selftests: implement random number generator for guest code
Implement random number generator for guest code to randomize parts of the test, making it less predictable and a more accurate reflection of reality. The random number generator chosen is the Park-Miller Linear Congruential Generator, a fancy name for a basic and well-understood random number generator entirely sufficient for this purpose. Signed-off-by: Colton Lewis <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Reviewed-by: David Matlack <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/perf_test_util.c')
0 files changed, 0 insertions, 0 deletions