Changeset 36220 for trunk/src/wp-includes/random_compat/random.php
- Timestamp:
- 01/08/2016 03:27:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/random_compat/random.php
r35922 r36220 59 59 if (extension_loaded('libsodium')) { 60 60 // See random_bytes_libsodium.php 61 require_once $RandomCompatDIR.'/random_bytes_libsodium.php'; 61 if (PHP_VERSION_ID >= 50300 && function_exists('\\Sodium\\randombytes_buf')) { 62 require_once $RandomCompatDIR.'/random_bytes_libsodium.php'; 63 } elseif (method_exists('Sodium', 'randombytes_buf')) { 64 require_once $RandomCompatDIR.'/random_bytes_libsodium_legacy.php'; 65 } 62 66 } 63 67 if ( … … 76 80 77 81 // See random_bytes_dev_urandom.php 78 require_once $RandomCompatDIR.'/random_bytes_dev_urandom.php';79 }82 require_once $RandomCompatDIR.'/random_bytes_dev_urandom.php'; 83 } 80 84 if ( 81 85 !function_exists('random_bytes') &&
Note: See TracChangeset
for help on using the changeset viewer.