Linux 软件免费装

wp_rand() for Entropy PHP

开发者 mdawaffe
automattic
更新时间 2014年9月6日 03:51
PHP版本: 3.0 及以上
WordPress版本: 3.4

标签

jetpack entropy wp_generate_password wp_rand

下载

详情介绍:

This plugin is not needed as of WordPress 3.5: https://core.trac.wordpress.org/changeset/21685 On some 32bit hosts, the Entropy builds of PHP truncate integers larger than PHP_INT_MAX to PHP_INT_MAX rather than overflowing them as floats. This can cause wp_rand() to return a value outside the requested range. That unexpected value in turn breaks wp_generate_password(), which can have security ramifications. Of particular note to this plugin's authors, the bug prevents Jetpack from functioning. This plugin works around the bug by redefining the pluggable wp_rand() function. In the redefinition, large integers are expressed as strings and cast to floats, rather than as ints.

更新日志:

0.1