lib/lite/uxid/nanoid.rb in lite-uxid-1.0.7 vs lib/lite/uxid/nanoid.rb in lite-uxid-1.0.8
- old
+ new
@@ -12,10 +12,10 @@
end
end
def encode
- encoding_chars.split('').sample(encoding_length).join
+ encoding_chars.chars.sample(encoding_length).join
end
end
end
end