{"id":48043,"date":"2011-12-15T21:18:59","date_gmt":"2011-12-15T21:18:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-rand-for-entropy-php\/"},"modified":"2014-09-05T19:51:57","modified_gmt":"2014-09-05T19:51:57","slug":"wp-rand-for-entropy-php","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-rand-for-entropy-php\/","author":6015,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"trunk","tested":"3.4.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"wp_rand() For Entropy PHP","header_author":"Automattic","header_description":"","assets_banners_color":"","last_updated":"2014-09-05 19:51:57","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/wp-rand-for-entropy-php\/","header_author_uri":"http:\/\/automattic.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":722,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[22761,1075,70061],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-48043","plugin","type-plugin","status-closed","hentry","plugin_tags-entropy","plugin_tags-jetpack","plugin_tags-wp_generate_password","plugin_committers-mdawaffe"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-rand-for-entropy-php.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin is not needed as of WordPress 3.5: https:\/\/core.trac.wordpress.org\/changeset\/21685<\/p>\n <p>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.<\/p>\n <p>This can cause <code>wp_rand()<\/code> to return a value outside the requested range.  That unexpected value in turn breaks <code>wp_generate_password()<\/code>, which can have security ramifications.<\/p>\n <p>Of particular note to this plugin's authors, the bug prevents <a href=\"http:\/\/jetpack.me\">Jetpack<\/a> from functioning.<\/p>\n <p>This plugin works around the bug by redefining the pluggable <code>wp_rand()<\/code> function.  In the redefinition, large integers are expressed as strings and cast to floats, rather than as ints.<\/p>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n <ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"This plugin is not needed as of WordPress 3.5.\n\nThe Entropy builds of PHP can truncate ints instead of overflowing as floats.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/48043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=48043"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mdawaffe"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=48043"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=48043"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=48043"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=48043"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=48043"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=48043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}