Make WordPress Core


Ignore:
Timestamp:
10/23/2015 04:21:01 AM (9 years ago)
Author:
dd32
Message:

Update to Random_Compat 1.0.9.
This update includes fixes for Windows support & libSodium support, and removes the Throwable Polyfill due to PHP7 incompatibilities.

Fixes #28633

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/random_compat/random_bytes_dev_urandom.php

    r34922 r35365  
    7575        }
    7676    }
    77     if (!is_int($bytes)) {
     77    try {
     78        $bytes = RandomCompat_intval($bytes);
     79    } catch (TypeError $ex) {
    7880        throw new TypeError(
    79             'Length must be an integer'
     81            'random_bytes(): $bytes must be an integer'
    8082        );
    8183    }
Note: See TracChangeset for help on using the changeset viewer.