]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/main.c
bsd-user: Implement --seed and initialize random state
authorWarner Losh <imp@FreeBSD.org>
Thu, 2 Sep 2021 22:52:45 +0000 (16:52 -0600)
committerWarner Losh <imp@bsdimp.com>
Fri, 10 Sep 2021 20:13:06 +0000 (14:13 -0600)
commit03ecf078fab7b3ce6fdd373a902211918efeab89
treefad431f9c3c5b0559181f7efc540e1cf2b470add
parent790baacc63c1cb29bfc3bf0755f49ca73a348eae
bsd-user: Implement --seed and initialize random state

Copy --seed implementation (translated from linux-user's newer command
line scheme to the older one bsd-user still uses). Initialize the
randomness with the glib if a specific seed is specified or use the
qcrypto library if not.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/main.c