projects/packages/connection/src/class-client.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 108-112 (lines=5) @@ | 
                                                            
                                    | 105 |  |  | 
                                                            
                                    | 106 |  | 		$timestamp = time() + $time_diff; | 
                                                            
                                    | 107 |  |  | 
                                                            
                                    | 108 |  | 		if ( function_exists( 'wp_generate_password' ) ) { | 
                                                            
                                    | 109 |  | 			$nonce = wp_generate_password( 10, false ); | 
                                                            
                                    | 110 |  | 		} else { | 
                                                            
                                    | 111 |  | 			$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); | 
                                                            
                                    | 112 |  | 		} | 
                                                            
                                    | 113 |  |  | 
                                                            
                                    | 114 |  | 		// Kind of annoying.  Maybe refactor Jetpack_Signature to handle body-hashing. | 
                                                            
                                    | 115 |  | 		if ( is_null( $body ) ) { | 
                                                                        
                 
                                                            
                    
projects/packages/connection/src/class-tokens.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 552-556 (lines=5) @@ | 
                                                            
                                    | 549 |  |  | 
                                                            
                                    | 550 |  | 		$timestamp = time(); | 
                                                            
                                    | 551 |  |  | 
                                                            
                                    | 552 |  | 		if ( function_exists( 'wp_generate_password' ) ) { | 
                                                            
                                    | 553 |  | 			$nonce = wp_generate_password( 10, false ); | 
                                                            
                                    | 554 |  | 		} else { | 
                                                            
                                    | 555 |  | 			$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); | 
                                                            
                                    | 556 |  | 		} | 
                                                            
                                    | 557 |  |  | 
                                                            
                                    | 558 |  | 		$normalized_request_string = join( | 
                                                            
                                    | 559 |  | 			"\n", |