Index: wp-admin/setup-config.php
===================================================================
--- wp-admin/setup-config.php	(revision 13077)
+++ wp-admin/setup-config.php	(working copy)
@@ -17,6 +17,11 @@
 define('WP_INSTALLING', true);
 
 /**
+ * We are blissfully unaware of anything.
+ */
+define('WP_SETUP_CONFIG', true);
+
+/**
  * Disable error reporting
  *
  * Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
@@ -179,11 +184,17 @@
 	}
 	/**#@-*/
 
-	$secret_keys = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/?salt=1' );
-	if ( is_wp_error( $secret_keys ) )
-		$secret_keys = false;
-	else
+	$secret_keys = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' );
+	if ( is_wp_error( $secret_keys ) ) {
+		$secret_keys = array();
+		require_once( ABSPATH . WPINC . '/pluggable.php' );
+		for ( $i = 0; $i < 8; $i++ )
+			$secret_keys[] = wp_generate_password( 64 );
+	} else {
 		$secret_keys = explode( "\n", wp_remote_retrieve_body( $secret_keys ) );
+		foreach ( $secret_keys as $k => $v )
+			$secret_keys[$k] = substr( $v, 28, 64 );
+	}
 	$key = 0;
 
 	foreach ($configFile as $line_num => $line) {
@@ -211,8 +222,7 @@
 			case "define('SECURE_A":
 			case "define('LOGGED_I":
 			case "define('NONCE_SA":
-				if ( $secret_keys )
-					$configFile[$line_num] = str_replace('put your unique phrase here', substr( $secret_keys[$key++], 28, 64 ), $line );
+				$configFile[$line_num] = str_replace('put your unique phrase here', $secret_keys[$key++], $line );
 				break;
 		}
 	}
Index: wp-config-sample.php
===================================================================
--- wp-config-sample.php	(revision 13077)
+++ wp-config-sample.php	(working copy)
@@ -37,7 +37,7 @@
  * Authentication Unique Keys and Salts.
  *
  * Change these to different unique phrases!
- * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/?salt=1 WordPress.org secret-key service}
+ * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
  *
  * @since 2.6.0
Index: wp-includes/pluggable.php
===================================================================
--- wp-includes/pluggable.php	(revision 13080)
+++ wp-includes/pluggable.php	(working copy)
@@ -1495,12 +1495,16 @@
 	// 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');
+		if ( defined( 'WP_SETUP_CONFIG' ) )
+			static $seed;
+		else
+			$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);
 		$seed = md5($seed . $rnd_value);
-		set_transient('random_seed', $seed);
+		if ( ! defined( 'WP_SETUP_CONFIG' ) )
+			set_transient('random_seed', $seed);
 	}
 
 	// Take the first 8 digits for our value
