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)
commitca93ca23409b827b48a2fc0a692496d3f7b67944
tree80b81e9f2a47ffa492cb4b27a5ce4debe32a7412
parentec59f128a9bd4255798abb1e06ac3b442f46ef68
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