openssl_random_pseudo_bytes() is slow (PHP)

后端 未结 3 584
萌比男神i
萌比男神i 2021-02-15 09:55

I\'m using opennssl_random_pseudo_bytes() in PHP and it is performing ultra slowly. My application often timeouts (throws that execution time limit error). Is there a particular

3条回答
  •  再見小時候
    2021-02-15 10:54

    It depends on how you run PHP. On my win7-64bit PHP5.3.27

    1. Apache + PHP-CGI = It takes 600ms
    2. Apache + PHP5 Module = It is instant

提交回复
热议问题