Cleanup style inconsistencies in cfb.js and random.js

This commit is contained in:
Tankred Hase 2016-02-06 13:36:19 +07:00
parent 1997e445f9
commit 9da63d56b3
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
'use strict';
import TypeMPI from '../type/mpi.js';
import type_mpi from '../type/mpi.js';
import util from '../util.js';
const nodeCrypto = util.detectNode() && require('crypto');
@ -112,7 +112,7 @@ export default {
randomBits.charCodeAt(0)) +
randomBits.substring(1);
}
var mpi = new TypeMPI();
var mpi = new type_mpi();
mpi.fromBytes(randomBits);
return mpi.toBigInteger();
},