? .image.module.swp
? fix-import_2.diff
? image_33.patch
? image_gallery.module_3.txt
Index: image.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.module,v
retrieving revision 1.268
diff -u -p -r1.268 image.module
--- image.module	2 Mar 2008 14:14:33 -0000	1.268
+++ image.module	10 Apr 2008 18:53:24 -0000
@@ -682,10 +682,10 @@ function theme_image_block_latest($image
  */
 function image_get_random($count = 1, $tid = 0) {
   if ($tid != 0) {
-    $result = db_query_range(db_rewrite_sql("SELECT DISTINCT n.nid FROM {term_node} tn LEFT JOIN {node} n ON n.nid=tn.nid WHERE n.type='image' AND n.status=1 AND tn.tid=%d ORDER BY RAND()"), $tid, 0, $count);
+    $result = db_query_range(db_rewrite_sql("SELECT DISTINCT(n.nid), RAND() AS rand FROM {term_node} tn LEFT JOIN {node} n ON n.nid = tn.nid WHERE n.type='image' AND n.status = 1 AND tn.tid = %d ORDER BY rand"), $tid, 0, $count);
   }
   else {
-    $result = db_query_range(db_rewrite_sql("SELECT DISTINCT n.nid FROM {node} n WHERE n.type='image' AND n.status=1 ORDER BY RAND()"), 0, $count);
+    $result = db_query_range(db_rewrite_sql("SELECT DISTINCT(n.nid), RAND() AS rand FROM {node} n WHERE n.type = 'image' AND n.status = 1 ORDER BY rand"), 0, $count);
   }
   $output = array();
   while ($nid = db_fetch_object($result)) {
