I'm Learning ROR, so I've make a Gist specially for it.
I'm also learning how to make post here so I will be editing this post for more completion.
# generate alfanumeric hash randomly | |
def genHash | |
a=('a'..'z').to_a.shuffle[0..9].each {|i| i.concat((0..9).to_a.shuffle[0].to_s)} | |
a.join | |
end | |
# example generated "e5o2x4v8r6u0j8q4t6y1" |
Top comments (0)