RandTest.php 627 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * The RandomLib library for securely generating random numbers and strings in PHP
  4. *
  5. * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
  6. * @copyright 2011 The Authors
  7. * @license http://www.opensource.org/licenses/mit-license.html MIT License
  8. * @version Build @@version@@
  9. */
  10. namespace RandomLib\Source;
  11. use SecurityLib\Strength;
  12. class RandTest extends AbstractSourceTest
  13. {
  14. protected static function getExpectedStrength()
  15. {
  16. if (defined('S_ALL')) {
  17. return new Strength(Strength::LOW);
  18. } else {
  19. return new Strength(Strength::VERYLOW);
  20. }
  21. }
  22. }