lib/securer_randomer.rb in securer_randomer-0.1.3 vs lib/securer_randomer.rb in securer_randomer-0.1.4

- old
+ new

@@ -27,9 +27,11 @@ q = _rand_range(m) break q unless n.exclude_end? and q == n.end end end + elsif n.begin == n.end and n.exclude_end? + nil else _rand_range(n) end else raise TypeError, "no implicit conversion of #{n.class} into Fixnum" \