News for hackers. Stuff that matters.
Re:How random can you be? by brospars on Friday March 08, 2019 @11:16AM (#19338873)
I'm virtually rich

var seq = '0000001000011000101000111001001011001101001111010101110110111111'; var index = 0; setInterval(function(){ captureKeyFunc({code : seq[index%seq.length] === '1' ? 'ArrowLeft':'ArrowRight', preventDefault: function () {}}); index++; }, 10);

Re:How random can you be? by turblety on Friday March 08, 2019 @07:11PM (#19343499)
Adapted to use Math.random

setInterval(function(){ captureKeyFunc({code : Math.round(Math.random()) === 1 ? 'ArrowLeft':'ArrowRight', preventDefault: function () {}}); }, 10);

Re:How random can you be? by brospars on Wednesday March 13, 2019 @06:02AM (#19377225)
With Math.random you get ~50% win, with the sequence you get 85% because it's an exploit
Re:How random can you be? by ben174 on Friday March 08, 2019 @04:23PM (#19342321)
Why use seq rather than Math.random()?
Re:How random can you be? by brospars on Wednesday March 13, 2019 @06:03AM (#19377232)
Because it's an exploit (read top comment)