Improved performance.

Instead of using srand(time(NULL)), rand() allows minimal timeout
operations.