Skip to content

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).

Merge request reports

Loading