Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lib: fix typo in lib/internal/crypto/random.js
change "bytesLength" to "byteLength"
  • Loading branch information
arkerone committed Apr 7, 2021
commit b980e90a50685b629b3dbf0619024c7fc4da95bc
2 changes: 1 addition & 1 deletion lib/internal/crypto/random.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function randomFill(buf, offset, size, callback) {
if (typeof offset === 'function') {
callback = offset;
offset = 0;
size = buf.bytesLength;
size = buf.byteLength;
} else if (typeof size === 'function') {
callback = size;
size = buf.byteLength - offset;
Expand Down