openssl_random_pseudo_bytes() is slow (PHP)

后端 未结 3 1341
情书的邮戳
情书的邮戳 2021-02-15 09:52

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:32

    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

提交回复
热议问题