zendframework / zend-math

Math component from Zend Framework
BSD 3-Clause "New" or "Revised" License
54 stars 25 forks source link

RandomLib not found #35

Closed flowl closed 6 years ago

flowl commented 6 years ago

The namespace with its classes under RandomLib is not available, it is not defined in composer.json and not in any file.

This whole project does not work when dependencies are missing.

See https://github.com/zendframework/zend-math/blob/master/src/Rand.php#L12

use RandomLib;

flowl commented 6 years ago

Solution could be to add the dependency:

$ composer require ircmaxell/random-lib
ezimuel commented 6 years ago

@flowl we used paragonie/random_compat instead of ircmaxell/RandomLib since zend-math 3.0.0. The use of RandomLib in the code was a old reference. Thanks for reporting this!