Added initialization of traditional srand/qsrand that were missing.