+ rand() was actually not initialized - same sequences after each reboot... This is TOO obvious. How's it possible that noone's ever noticed this?