Ron Green wrote:> What is the purpose of string hash? What would you use it for?
> EXAMPLE: "This is a test.".hash RETURNS -649841898. WHAT EXACTLY
DOES
> THIS REPRESENT? WHAT IS IT GOOD FOR? COMPARISONS?
it has to do with Cryptography, it has nothing to do with the Hash
class, if this is what is confusing you.
http://en.wikipedia.org/wiki/Hash_function
is a general explination (not just ruby) but i see it fit good enough.
in terms of usage, well, that''s up to u, i guess.
hth
--shai
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---