Updated GenerateRandomCode method to have long parameter value, instead of int parameter one.