9 lines
145 B
Ruby
9 lines
145 B
Ruby
module ReallySimpleCaptcha
|
|
module Util
|
|
def self.random_string(length=8)
|
|
(0...length).map{65.+(rand(26)).chr}.join
|
|
end
|
|
end
|
|
end
|
|
|