[Pkg-javascript-commits] [node-randomfill] 15/47: avoid extra copy
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:52:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-randomfill.
commit f0aedbd8cf5d616120c64d517dcfd4974076e077
Author: Calvin Metcalf <cmetcalf at appgeo.com>
Date: Mon Dec 7 12:47:56 2015 -0500
avoid extra copy
---
browser.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/browser.js b/browser.js
index a5490b2..f7980db 100644
--- a/browser.js
+++ b/browser.js
@@ -25,7 +25,7 @@ function randomBytes (size, cb) {
crypto.getRandomValues(rawBytes)
// phantomjs doesn't like a buffer being passed here
- var bytes = new Buffer(rawBytes)
+ var bytes = new Buffer(rawBytes.buffer)
if (typeof cb === 'function') {
return process.nextTick(function () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-randomfill.git
More information about the Pkg-javascript-commits
mailing list