MyBB Community Forums

Full Version: Slow function call
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Heyho,

i had to relocate out forum to another host recently.
The new server is a windows 2003 with Apache 2.2/modssl and
php 5.3.

However, i noticed that viewing a page as member suddenly
takes 2 seconds instead of 0.2.

I traced the problem down to the following function:
inc/functions.php - secure_seed_rng()

This one calls (if function exists) "openssl_random_pseudo_bytes" which
takes about 1 second per call! One second to generate
8 random bytes. Come on, how secure has a random string to be?
As this one is called 2 times per page-view, it makes 2 second extra per
view.

Well, i will remove the sslmod again, since I dont really need
anyways, but I think you guys should reconsider using
that function on windows systems.

Thanks
Chuck
This is a problem with 1.4.12 and it is currently being addressed Wink
It is removed in 1.4.13
This is a problem with 1.4.12 and it is currently being addressed 。