Same error hier after updating an existing System. Setup is Ubuntu 14.04 with paragonie/random_compat "~1.1"
Update: Ok the random.php file from yesterday works fine, looks like we have an regression.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello Guys,
I'm trying to upload from local to Remote Server by Git. My website is on Laravel 5.2. On local, everything works fine on Wamp, but when I upload to remote server for the first time. This error keeps appearing.
Exception in random.php line 185: There is no suitable CSPRNG installed on your system
I have been fixing for many hours and have no clue. My remote server is VPS Centos 6.7 with PHP 5.6, Open SSL and "paragonie/random_compat": "^1.3" installed. I believe this error comes from paragonie package according to https://github.com/paragonie/random_compat/blob/master/lib/random.php
I'm quite sure that openssl is enable and openssl_random_pseudo_bytes() could be executed.
I had the same issue. "paragonie/random_compat" was a dependency of one of my dependencies and was updated automatically to version 1.3.0 which caused the issue. I solved it by adding "paragonie/random_compat": "1.2.*" to my projects composer dependencies and updating composer.
Please or to participate in this conversation.