Fix a couple of places where (f)printf parameters were broken

As reported by Thomas Jarosch <thomas.jarosch@intra2net.com>
Initialize pseudo random number generator with current time or optional command line parameter