handling JSVerify RNG state 88caf85079d32e416b

This commit is contained in:
El RIDO
2017-03-26 06:47:57 +02:00
parent 6fb3fe51b2
commit e1ea14627f
2 changed files with 66 additions and 5 deletions

View File

@@ -277,7 +277,7 @@ describe('Helper', function () {
var key = item.replace(/[\s;,=]/g, Array(i+2).join('£')),
value = (values[i] || values[0]).replace(/[\s;,=]/g, '');
cookieArray.push(key + '=' + value);
if (Math.random() < 1 / i)
if (Math.random() < 1 / i || selectedKey === key)
{
selectedKey = key;
selectedValue = value;