altf4 / untwister

Seed recovery tool for PRNGs
GNU General Public License v3.0
359 stars 42 forks source link

Is it normal for the second in the series of calculations to slow dramatically? #47

Open Talinn92 opened 2 years ago

Talinn92 commented 2 years ago

@moloch-- @altf4

I might be new to using this tool but I've tried to run it on Kali/Mint and every time after initially running it and going through the first calculation it does where it uses all of my CPU power to do it relatively quickly, it'll suddenly start a new series of calculation but drop my CPU usage to like 1/5th of what it should be bringing down the amount of calculations/sec from over a million to like 50,000 and take far longer to do. Is there a reason for this or is this just how it is coded? Been running Linux on VM with an AMD cpu.

related

Circled the relevant part.

moloch-- commented 2 years ago

Weird, not seen this behavior before

Talinn92 commented 2 years ago

Yeah just tried it again and it went from like 1.2 million and about fifty minutes to 50,000 and 19 hours with the CPU dropping to basically nothing.

Talinn92 commented 2 years ago

@moloch-- It seems like it drops to just 1 cpu thread after the first calculation for no apparent reason?

Talinn92 commented 2 years ago

untwisterdead

@moloch-- @altf4

moloch-- commented 2 years ago

very odd never seen this before

Talinn92 commented 2 years ago

@moloch-- I sort of narrowed it down to an issue, I was using bounded prngs for ruby-rand which was added here https://github.com/hyprwired/untwister. But it doesn't seem to work with values values <100. Do you know if there is a reason for this?

moloch-- commented 2 years ago

Not sure sorry!