Skip to content

Commit

Permalink
fix: avoid Buffer(), use Buffer.alloc() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 3, 2018
1 parent fb44dd5 commit 90b869b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/publickey.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class PublicKey {
return b;
}

const zeroPad = new Buffer(32);
const zeroPad = Buffer.alloc(32);
b.copy(zeroPad);
return zeroPad;
}
Expand Down

0 comments on commit 90b869b

Please sign in to comment.