Improved random entropy
This commit is contained in:
parent
96db3f036a
commit
65377e2121
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user