Bug fix
This commit is contained in:
parent
10fa130229
commit
0eb4d59dc3
@ -30,6 +30,7 @@
|
|||||||
generalData: {},
|
generalData: {},
|
||||||
lastVC: {}
|
lastVC: {}
|
||||||
}
|
}
|
||||||
|
window.cryptocoin = floGlobals.blockchain;
|
||||||
</script>
|
</script>
|
||||||
<script id="onLoadStartUp">
|
<script id="onLoadStartUp">
|
||||||
function onLoadStartUp() {
|
function onLoadStartUp() {
|
||||||
@ -456,12 +457,16 @@
|
|||||||
//SecureRandom.js
|
//SecureRandom.js
|
||||||
(function(GLOBAL) {
|
(function(GLOBAL) {
|
||||||
|
|
||||||
var getRandomValues =
|
const getRandomValues = function(buf) {
|
||||||
(typeof require === 'function') ? function(buf) {
|
if(typeof require === 'function'){
|
||||||
var bytes = require('crypto').randomBytes(buf.length)
|
var bytes = require('crypto').randomBytes(buf.length);
|
||||||
buf.set(bytes)
|
buf.set(bytes)
|
||||||
return buf;
|
return buf;
|
||||||
} : (GLOBAL.crypto && GLOBAL.crypto.getRandomValues ? GLOBAL.crypto.getRandomValues : null);
|
} else if (GLOBAL.crypto && GLOBAL.crypto.getRandomValues)
|
||||||
|
return GLOBAL.crypto.getRandomValues(buf);
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Random number generator with ArcFour PRNG
|
* Random number generator with ArcFour PRNG
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user