lib/egn/util.rb in egn-1.3.2 vs lib/egn/util.rb in egn-1.3.3

- old
+ new

@@ -1,9 +1,9 @@ # Contains some utility methods that are used by the other classes module Egn module Util - WEIGHTS = [2,4,8,5,10,9,7,3,6] + WEIGHTS = [2, 4, 8, 5, 10, 9, 7, 3, 6] # The EGN can have three different formats depending on the century. It can # be determined by examining the month. # The rules are as follows: # * For people born in 1900..1999 the month does not change @@ -34,8 +34,7 @@ # Get a random date def self.time_rand(from = 0.0, to = Time.now) Time.at(from + rand * (to.to_f - from.to_f)) end - end end