    # File lib/phusion_passenger/utils.rb, line 93
            def generate_random_id(method)
                    case method
                    when :base64
                            data = [File.read("/dev/urandom", 64)].pack('m')
                            data.gsub!("\n", '')
                            data.gsub!("+", '')
                            data.gsub!("/", '')
                            data.gsub!(/==$/, '')
                            return data
                    when :hex
                            return File.read("/dev/urandom", 64).unpack('H*')[0]
                    else
                            raise ArgumentError, "Invalid method #{method.inspect}"
                    end
            end