diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-06-26 14:35:18 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-07 11:24:43 -0700 |
| commit | 5506feb24282db0a9db5b0e151093e6eb74dd101 (patch) | |
| tree | 1b10744791a4003eefd532984d0dd470e92cf5fc /tools/perf/scripts/python/stackcollapse.py | |
| parent | bae85cd758fe30b3837c6dcfc0572db34aecea45 (diff) | |
KVM: selftests: Seed libc's RNG before using it to generate a seed for KVM's pRNG
Seed the RNG used by random() using the de facto standard method of
srand(time(0)), so that a different seed is actually used in each test run.
E.g. without seeding the RNG, literally every test on x86 will use
0x6b8b4567 to seed the KVM RNG.
Link: https://patch.msgid.link/20260626213534.3866178-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
