Better RNG choosen (mt_rand()), writing initial secret file fixed, thanks to profi...