]> www.infradead.org Git - linux.git/commitdiff
KVM: selftests: Drop stale srandom() initialization from dirty_log_test
authorSean Christopherson <seanjc@google.com>
Sat, 11 Jan 2025 00:29:48 +0000 (16:29 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 17:00:55 +0000 (09:00 -0800)
Drop an srandom() initialization that was leftover from the conversion to
use selftests' guest_random_xxx() APIs.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20250111003004.1235645-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/dirty_log_test.c

index d9911e20337f19df3c2d61e130a2a0b860825776..55a744373c805f9b9aa553641220289f3f4eb895 100644 (file)
@@ -891,8 +891,6 @@ int main(int argc, char *argv[])
        pr_info("Test iterations: %"PRIu64", interval: %"PRIu64" (ms)\n",
                p.iterations, p.interval);
 
-       srandom(time(0));
-
        if (host_log_mode_option == LOG_MODE_ALL) {
                /* Run each log mode */
                for (i = 0; i < LOG_MODE_NUM; i++) {