>>> seed = rand() + time( 0 ); I don't like the use of addition here, would rather go for something XOR-based Cheerio p.s. This was said with my old and dusty "cryptography enthusiast" hat on -- Cheerio, Ivan -- While you were hanging yourself on someone else's words Dying to believe in what you heard I was staring straight into the shining sun