test: refactor test-crypto-random
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test crypto
Description of change
- specify constructor for assert.throws()
- load additional modules only if crypto check passes
- normalize some potentially confusing indentation
- provided actual first and expected second in assertions