Browse Source

Improved random entropy

master
Igor Zhukov 10 years ago
parent
commit
65377e2121
  1. 5
      app/js/lib/mtproto.js

5
app/js/lib/mtproto.js

@ -128,7 +128,8 @@ angular.module('izhukov.mtproto', ['izhukov.utils']) @@ -128,7 +128,8 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
};
})
.service('MtpSecureRandom', function () {
.service('MtpSecureRandom', function ($window) {
$($window).on('click keydown', rng_seed_time);
return new SecureRandom();
})
@ -235,8 +236,6 @@ angular.module('izhukov.mtproto', ['izhukov.utils']) @@ -235,8 +236,6 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
return $q.reject({code: 406, type: 'NETWORK_BAD_RESPONSE', originalError: e});
}
rng_seed_time();
return deserializer;
},
function (error) {

Loading…
Cancel
Save