]> git.baikalelectronics.ru Git - kernel.git/commit
wireguard: selftests: simplify RNG seeding
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 30 Mar 2022 01:31:25 +0000 (21:31 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 31 Mar 2022 02:14:08 +0000 (19:14 -0700)
commitddc0819a051e9c5a968603411b7ad5a4fbbc6e73
tree80b81e9f2a47ffa492cb4b27a5ce4debe32a7412
parent2f549fac95cf840d32f80860d3db48f505e28d14
wireguard: selftests: simplify RNG seeding

The seed_rng() function was written to work across lots of old kernels,
back when WireGuard used a big compatibility layer. Now that things have
evolved, we can vastly simplify this, by just marking the RNG as seeded.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/wireguard/qemu/init.c