[Pkg-javascript-commits] [node-miller-rabin] 11/37: lib: fix brorand usage

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:20:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-miller-rabin.

commit dc081e7642ae8bd7588e5794e91102e407866041
Author: Fedor Indutny <fedor at indutny.com>
Date:   Fri Nov 7 18:10:33 2014 +0300

    lib: fix brorand usage
---
 lib/mr.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mr.js b/lib/mr.js
index 117943b..0d237d2 100644
--- a/lib/mr.js
+++ b/lib/mr.js
@@ -12,7 +12,7 @@ MillerRabin.create = function create(rand) {
 
 MillerRabin.prototype._rand = function _rand(n) {
   var len = n.bitLength();
-  var buf = brorand(Math.ceil(len / 8));
+  var buf = this.rand.generate(Math.ceil(len / 8));
 
   // Set low bits
   buf[0] |= 3;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-miller-rabin.git



More information about the Pkg-javascript-commits mailing list