From 939888822daadfcb01a0e881927e040ccd34b1c5 Mon Sep 17 00:00:00 2001 From: Daniel Peck Date: Thu, 23 Feb 2012 03:27:53 -0500 Subject: [PATCH] modified documentation for String::hash to clarify that results are not conistent across sessions and advice for if that behavior is desired --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.c b/string.c index 1cc41fea2789e4..2ced411d6ba8e7 100644 --- a/string.c +++ b/string.c @@ -2159,7 +2159,7 @@ rb_str_hash_cmp(VALUE str1, VALUE str2) * call-seq: * str.hash -> fixnum * - * Return a hash based on the string's length and content. + * Return a hash based on the string's length and content, and a session local random seed. Note: Due to the random seed being generated at runtime hash values will not be consistent across sessions, if this is desired use Digest::SHA256 or another digest function */ static VALUE