]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-firewall-util.c
Simplify random number selection
[thirdparty/systemd.git] / src / test / test-firewall-util.c
index f22bc3c5bcce903877ef187e125334a551190861..3ca3108e365b8b9e0241aa1dc3c32eee6b6287ba 100644 (file)
@@ -25,7 +25,7 @@ static void test_v6(FirewallContext *ctx) {
         assert_se(in_addr_from_string(AF_INET6, "1c3::c01d", &u2) >= 0);
 
         prefixlen = random_u64_range(128 + 1 - 8) + 8;
-        pseudo_random_bytes(&u3, sizeof(u3));
+        random_bytes(&u3, sizeof(u3));
 
         assert_se(fw_add_masquerade(&ctx, true, AF_INET6, &u1, 128) >= 0);
         assert_se(fw_add_masquerade(&ctx, false, AF_INET6, &u1, 128) >= 0);