News for hackers. Stuff that matters.
Re:Bitcoin trojan caught in the wild by andrewcooke on Friday June 17, 2011 @12:37AM (#2664336)
what's with the random number generation at the start? how does rand() + 3*rand() improve on just rand()?
Re:Bitcoin trojan caught in the wild by mootothemax on Friday June 17, 2011 @03:10AM (#2664652)
There's a great series of answers to this on StackOverflow:

http://stackoverflow.com/questions/3956478/understanding-ran...

In short: doing things like this actually reduces the randomness of the end result.