Method: JsChat#new_cookie
- Defined in:
- lib/jschat/server.rb
#new_cookie ⇒ Object
392 393 394 395 |
# File 'lib/jschat/server.rb', line 392 def chars = ("a".."z").to_a + ("1".."9").to_a Array.new(8, '').collect { chars[rand(chars.size)] }.join end |