Security component enhancements
Security component enhancements

- Added tests for random key generation speed.
- Better generateRandomKey() performance for small reads because of using fopen + buffered read and local caching of source detection.
- Use /dev/random on FreeBSD.

yiisoft/yii2-framework,yiisoft/yii2-framework