Revert "Unittest for generateRandom"