Index: apachesolr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.module,v
retrieving revision 1.1.2.12.2.183
diff -u -p -r1.1.2.12.2.183 apachesolr.module
--- apachesolr.module	4 Mar 2010 04:17:20 -0000	1.1.2.12.2.183
+++ apachesolr.module	29 Mar 2010 01:47:42 -0000
@@ -123,7 +123,8 @@ function apachesolr_failure($search_name
 function apachesolr_site_hash() {
   if (!($hash = variable_get('apachesolr_site_hash', FALSE))) {
     global $base_url;
-    $hash = substr(md5(md5($base_url . drupal_get_private_key() . 'apachesolr')), 0, 12);
+    // Set a random 6 digit base-36 number as the hash.
+    $hash = substr(base_convert(sha1(uniqid($base_url, TRUE)), 16, 36), 0, 6);
     variable_set('apachesolr_site_hash', $hash);
   }
   return $hash;
Index: apachesolr_search.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.module,v
retrieving revision 1.1.2.6.2.133
diff -u -p -r1.1.2.6.2.133 apachesolr_search.module
--- apachesolr_search.module	24 Feb 2010 23:00:01 -0000	1.1.2.6.2.133
+++ apachesolr_search.module	29 Mar 2010 01:47:42 -0000
@@ -1179,7 +1179,7 @@ function theme_apachesolr_search_snippet
 }
 
 
-function apacehsolr_get_parent_terms($tids) {
+function apachesolr_get_parent_terms($tids) {
   // Find the starting tid terms and then all their parents.
   $parent_terms = array();
   $new_tids = $tids;
@@ -1227,7 +1227,7 @@ function apachesolr_search_currentsearch
     }
     if ($facets) {
       // Get all term hierarchy information.
-      $all_terms = apacehsolr_get_parent_terms(array_keys($facets));
+      $all_terms = apachesolr_get_parent_terms(array_keys($facets));
       foreach ($all_terms as $tid => $term) {
         if (!isset($facets[$tid])) {
           // This is a parent that is missing from the query.  E.g. we started
