riscv-qemu: add VirtIO RNG device

This implements machine.GetRNG() using VirtIO. This gets the tests to
pass for crypto/md5 and crypto/sha1 that use crypto/rand in their tests.
This commit is contained in:
Ayke van Laethem
2025-03-10 11:34:29 +01:00
committed by Ron Evans
parent 7f970a45c2
commit cab3834bc9
6 changed files with 193 additions and 7 deletions
-3
View File
@@ -429,7 +429,6 @@ TEST_PACKAGES_NONWASM = \
#
# * No filesystem is available, so packages like compress/zlib can't be tested
# (just like wasm).
# * There is no RNG implemented (TODO, I think this is fixable).
# * picolibc math functions apparently are less precise, the math package
# fails on baremetal.
# * Some packages fail or hang for an unknown reason, this should be
@@ -438,8 +437,6 @@ TEST_PACKAGES_BAREMETAL = $(filter-out $(TEST_PACKAGES_NONBAREMETAL), $(TEST_PAC
TEST_PACKAGES_NONBAREMETAL = \
$(TEST_PACKAGES_NONWASM) \
crypto/elliptic \
crypto/md5 \
crypto/sha1 \
math \
reflect \
encoding/asn1 \