OpenMP Multithreading on a Random Password Generator

前端 未结 1 1080
梦毁少年i
梦毁少年i 2021-01-28 05:21

I am attempting to make a fast password generator using multithreading with OpenMP integrated into Visual Studio 2010.

Let\'s say I have this basic string generator tha

相关标签:
1条回答
  • 2021-01-28 05:43

    To answer your question, and turn @CrazyCasta's comment into an answer:

    Yes, you are using the wrong tool for the wrong job

    rand isn't parallelisable as you want it to be, and since generating a password of any reasonable length is very fast already it's difficult to see why you would bother.

    However, the topic of parallel pseudo-random number generators is an interesting one and there is a lot of published work on them, even some questions and good answers here on SO. I suggest you direct your attention to some more learning and return to your programming when you know some more about them.

    0 讨论(0)
提交回复
热议问题