News for hackers. Stuff that matters.
Re:Trolling homework questions - sorting by akx on Saturday December 28, 2013 @08:55AM (#6974980)
And since `srand(time(NULL))` isn't ever called, it's deterministic, too!
Re:Trolling homework questions - sorting by nitrogen on Sunday December 29, 2013 @01:23AM (#6978646)
Is that the case for all platforms and C libraries? Also, isn't seeding with the current time a way to guarantee deterministic behavior? An attacker of such an algorithm probably knows what time it is, and users probably don't expect all invocations within a given second to return the same results.