doc: correct crypto.randomFill() and randomFillSync()
Correct return type of crypto.randomFillSync()
which is of same type as passed as buffer
argument.
Correct samples for randomFill()
and randomFillSync()
using a TypeArray
or DataView
as these types don't support .toString(encoding)
.
-
documentation is changed or added -
commit message follows commit guidelines