Index: wp-includes/functions.php
===================================================================
--- wp-includes/functions.php	(revision 12982)
+++ wp-includes/functions.php	(working copy)
@@ -673,17 +673,17 @@
 	if ( $_wp_using_ext_object_cache ) {
 		$value = wp_cache_get($transient, 'transient');
 	} else {
-		if ( ! defined( 'WP_INSTALLING' ) ) {
-			$transient_option = '_transient_' . esc_sql($transient);
-			// If option is not in alloptions, it is not autoloaded and thus has a timeout
-			$alloptions = wp_load_alloptions();
-			if ( !isset( $alloptions[$transient_option] ) ) {
-				$transient_timeout = '_transient_timeout_' . esc_sql($transient);
-				if ( get_option($transient_timeout) < time() ) {
-					delete_option($transient_option);
-					delete_option($transient_timeout);
-					return false;
-				}
+		if ( defined( 'WP_INSTALLING' ) )
+			return false;
+		$transient_option = '_transient_' . esc_sql($transient);
+		// If option is not in alloptions, it is not autoloaded and thus has a timeout
+		$alloptions = wp_load_alloptions();
+		if ( !isset( $alloptions[$transient_option] ) ) {
+			$transient_timeout = '_transient_timeout_' . esc_sql($transient);
+			if ( get_option($transient_timeout) < time() ) {
+				delete_option($transient_option);
+				delete_option($transient_timeout);
+				return false;
 			}
 		}
 
Index: wp-includes/pluggable.php
===================================================================
--- wp-includes/pluggable.php	(revision 12982)
+++ wp-includes/pluggable.php	(working copy)
@@ -1492,11 +1492,10 @@
 function wp_rand( $min = 0, $max = 0 ) {
 	global $rnd_value;
 
-	$seed = get_transient('random_seed');
-
 	// Reset $rnd_value after 14 uses
 	// 32(md5) + 40(sha1) + 40(sha1) / 8 = 14 random numbers from $rnd_value
 	if ( strlen($rnd_value) < 8 ) {
+		$seed = get_transient('random_seed');
 		$rnd_value = md5( uniqid(microtime() . mt_rand(), true ) . $seed );
 		$rnd_value .= sha1($rnd_value);
 		$rnd_value .= sha1($rnd_value . $seed);
