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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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!