clumsy icon indicating copy to clipboard operation
clumsy copied to clipboard

this APP uses random seed incorrectly in some cases

Open Caesar41 opened this issue 4 years ago • 0 comments
trafficstars

According to the MSDN documentation on srand() (assuming you are using Microsoft's C runtime library), the seed is thread-local, so you need to call srand() for each thread that is using rand(). But in this APP, you call srand() in the main thread, but rand() is actually called in other thread(like divertReadLoop and divertClockLoop)

Caesar41 avatar Aug 12 '21 17:08 Caesar41