Bug #51636 [Fbk]: openssl_random_pseudo_bytes() painfully slow

From: Date: Fri, 23 Apr 2010 08:47:17 +0000
Subject: Bug #51636 [Fbk]: openssl_random_pseudo_bytes() painfully slow
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-149810@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51636&edit=1

 ID:               51636
 Updated by:       pajoye@php.net
 Reported by:      kaisellgren at gmail dot com
 Summary:          openssl_random_pseudo_bytes() painfully slow
 Status:           Feedback
 Type:             Bug
 Package:          OpenSSL related
 Operating System: Windows
 PHP Version:      5.3.2
-Assigned To:      pajo
+Assigned To:      pajoye

 New Comment:

Under CLI or inside a web server?

Can you try under CLI please?


Previous Comments:
------------------------------------------------------------------------
[2010-04-23 10:47:13] pajoye@php.net

Under CLI or inside a web server?

Can you try under CLI please?

------------------------------------------------------------------------
[2010-04-22 17:38:44] kaisellgren at gmail dot com

Description:
------------
Whenever I execute the following command:

openssl_random_pseudo_bytes(1); // or any other number

PHP will process the function call for like a minute.

I am using Windows 7, and it is affected by both x86 and x64 systems. I
do not see a problem on Linux, though.

Test script:
---------------
$random = openssl_random_pseudo_bytes(1, $strong);

Expected result:
----------------
The random generation should happen within a blink of an eye.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51636&edit=1


Thread (8 messages)

« previous php.bugs (#149810) next »