Make WordPress Core


Ignore:
Timestamp:
03/08/2016 05:14:52 PM (9 years ago)
Author:
ocean90
Message:

Update Random_Compat from 1.1.6 to 1.2.1.

Changes: https://github.com/paragonie/random_compat/compare/1.1.6...v1.2.1

See #35665.

File:
1 edited

Legend:

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

    r35922 r36886  
    6363            }
    6464        }
     65
    6566        if (!empty($fp)) {
    6667            /**
     
    8081        }
    8182    }
     83
    8284    try {
    8385        $bytes = RandomCompat_intval($bytes);
     
    8789        );
    8890    }
     91
    8992    if ($bytes < 1) {
    9093        throw new Error(
     
    9295        );
    9396    }
     97
    9498    /**
    9599     * This if() block only runs if we managed to open a file handle
     
    102106        $remaining = $bytes;
    103107        $buf = '';
     108
    104109        /**
    105110         * We use fread() in a loop to protect against partial reads
     
    134139        }
    135140    }
     141
    136142    /**
    137143     * If we reach here, PHP has failed us.
Note: See TracChangeset for help on using the changeset viewer.