Emulate C# Random() in C++ (Same Numbers)
问题 Is there a way to implement the C# Random() class in C++? I specifically need to generate the same number sequences based on a given seed. The scenario: I am working to "break" several encrypting malware by exploiting their usage of Random() in C# to generate the key. Obviously this is weak to having only 2^32 possible keys, ~4.3B keys, which is in the realm of possibility to guess. I have written bruteforcers in C#, but they are rather slow, no matter how much I optimize. I would like to