blockcypher / php-client

PHP wrapper for the BlockCypher APIs
Apache License 2.0
51 stars 85 forks source link

Warning: Using non-secure random number generator #114

Open UpalChakraborty opened 4 years ago

UpalChakraborty commented 4 years ago

Warning: Using non-secure random number generator. in /public_html/php-client/mdanter/ecc/src/Random/GmpRandomNumberGenerator.php on line 13

Triggering file: https://github.com/blockcypher/php-client/blob/master/sample/transaction-api/CreateAndSignAndSendTransaction.php

PHP Version: 7.4

Codebase: https://github.com/blockcypher/php-client/releases/tag/v1.5.0

Appears to be a problem occurring due to deprecation of 'mcrypt' from PHP 7.1 (Ref: https://www.php.net/manual/en/migration71.deprecated.php).

Without installing 'mcrypt' or suppressing warning messages or degrading below PHP 7.4, how do I fix it properly?

adgeese commented 4 years ago

Should I continue forward with this project, perhaps some chatter or acknowledgment would be helpful to future customers

quentinlesceller commented 4 years ago

Hi @adgeese and @UpalChakraborty the PHP 5.5 version (php55 branch) is stable but the master branch is currently in beta. This is currently not at the top of my todo list of things to fix right now. So I'd appreciate if someone could do a quick PR to fix this.