test: use common.mustNotCall in test-crypto-random
Use common.mustNotCall()
to confirm that noop callbacks are not run
when functions throw errors.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test crypto