Improved random entropy

This commit is contained in:
Igor Zhukov 2014-11-06 15:35:03 +03:00
parent 96db3f036a
commit 65377e2121

View File

@ -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'])
return $q.reject({code: 406, type: 'NETWORK_BAD_RESPONSE', originalError: e});
}
rng_seed_time();
return deserializer;
},
function (error) {