Add tests into internal/crypto/random.js to improve coverage
I added these test case:
- Call randomBytes with cb is not a function
- Call randomFill with cb is not a function
Current coverage is here: https://coverage.nodejs.org/coverage-06e1b0386196f8f8/root/internal/crypto/random.js.html
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test