Skip to content

Commit 1230907

Browse files
committed
KVM: selftests: Drop stale srandom() initialization from dirty_log_test
Drop an srandom() initialization that was leftover from the conversion to use selftests' guest_random_xxx() APIs. Reviewed-by: Maxim Levitsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent ff0efc7 commit 1230907

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/testing/selftests/kvm/dirty_log_test.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,6 @@ int main(int argc, char *argv[])
891891
pr_info("Test iterations: %"PRIu64", interval: %"PRIu64" (ms)\n",
892892
p.iterations, p.interval);
893893

894-
srandom(time(0));
895-
896894
if (host_log_mode_option == LOG_MODE_ALL) {
897895
/* Run each log mode */
898896
for (i = 0; i < LOG_MODE_NUM; i++) {

0 commit comments

Comments
 (0)