24.11.2016 Views

Not So Random

Not%20So%20Random%20-%20Exploiting%20Unsafe%20Random%20Number%20Generator%20Use

Not%20So%20Random%20-%20Exploiting%20Unsafe%20Random%20Number%20Generator%20Use

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Untwister Brute Force Algorithm 101<br />

4. For each worker thread, seed a PRNG for each possible seed appropriate for the thread:<br />

for(uint32_t seedIndex = startingSeed; seedIndex load(std::memory_order_relaxed))<br />

{<br />

break; // <strong>So</strong>me other thread found the seed<br />

}<br />

generator->seed(seedIndex);<br />

…<br />

<strong>Not</strong> <strong>So</strong> <strong>Random</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!