fix: avoid Buffer(), use Buffer.alloc() instead

This commit is contained in:
Michael Vines
2018-10-02 21:01:58 -07:00
parent d3d1bce4c2
commit f9cf7006df

View File

@ -68,7 +68,7 @@ export class PublicKey {
return b; return b;
} }
const zeroPad = new Buffer(32); const zeroPad = Buffer.alloc(32);
b.copy(zeroPad); b.copy(zeroPad);
return zeroPad; return zeroPad;
} }