lachesis / scallion

GPU-based Onion Hash generator
Other
1.25k stars 164 forks source link

Fix for python shebang and early thread exiting #168

Open scribblemaniac opened 3 years ago

scribblemaniac commented 3 years ago

I haven't used scallion in a long time, but back when I did I made these changes and I thought I should submit them now. The shebang fix is pretty self-explanatory. The other fix is for when the exponent index doesn't match. I'm not sure if I ever encountered this edge case or if I just noticed the issue in the code. It's clearly meant to just skip over the key in that case, but the break statement actually breaks out of the main loop, ending that thread prematurely.