@@ -0,0 +1,5 @@
+class ActivationCode
+  def self.generate
+    Digest::SHA1.hexdigest(Time.now.to_s.split(//).sort_by { rand }.join)
+  end
+end
SecureRandom.hex(20) is more simple and gives the same result.