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
|
@@ 642-646 (lines=5) @@
|
| 639 |
|
|
| 640 |
|
$timestamp = time(); |
| 641 |
|
|
| 642 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 643 |
|
$nonce = wp_generate_password( 10, false ); |
| 644 |
|
} else { |
| 645 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 646 |
|
} |
| 647 |
|
|
| 648 |
|
$normalized_request_string = join( |
| 649 |
|
"\n", |