Skip to content
This repository has been archived by the owner on Oct 24, 2020. It is now read-only.

Warning: Using non-secure random number generator #114

Open
UpalChakraborty opened this issue Jul 10, 2020 · 2 comments
Open

Warning: Using non-secure random number generator #114

UpalChakraborty opened this issue Jul 10, 2020 · 2 comments

Comments

@UpalChakraborty
Copy link

UpalChakraborty commented Jul 10, 2020

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
Copy link

adgeese commented Aug 11, 2020

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

@quentinlesceller
Copy link
Contributor

quentinlesceller commented Aug 12, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants