Skip to content
Browse files

rename Hash module to Digest

  • Loading branch information...
1 parent b3d8b7f commit a02176570a5282ed712529b3b5be15836d3aec19 @freels freels committed Sep 20, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/gizzard.rb
  2. +1 −1 lib/gizzard/commands.rb
  3. +1 −1 lib/gizzard/{hash.rb → digest.rb}
View
2 lib/gizzard.rb
@@ -2,4 +2,4 @@
module Gizzard; end
require "gizzard/thrift"
require "gizzard/commands"
-require "gizzard/hash"
+require "gizzard/digest"
View
2 lib/gizzard/commands.rb
@@ -421,7 +421,7 @@ def run
help!("Requires table id and source") unless table_id && source
case @command_options.hash_function
when :fnv
- source_id = Hash.fnv1a_64(source)
+ source_id = Digest.fnv1a_64(source)
else
source_id = source.to_i
end
View
2 lib/gizzard/hash.rb → lib/gizzard/digest.rb
@@ -1,5 +1,5 @@
module Gizzard
- module Hash
+ module Digest
def self.fnv1a_64(data)
prime = 1099511628211
rv = 0xcbf29ce484222325

0 comments on commit a021765

Please sign in to comment.
Something went wrong with that request. Please try again.