[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/ramsey/uuid/src/Generator/ -> RandomGeneratorInterface.php (source)

   1  <?php
   2  /**
   3   * This file is part of the ramsey/uuid library
   4   *
   5   * For the full copyright and license information, please view the LICENSE
   6   * file that was distributed with this source code.
   7   *
   8   * @copyright Copyright (c) Ben Ramsey <[email protected]>
   9   * @license http://opensource.org/licenses/MIT MIT
  10   * @link https://benramsey.com/projects/ramsey-uuid/ Documentation
  11   * @link https://packagist.org/packages/ramsey/uuid Packagist
  12   * @link https://github.com/ramsey/uuid GitHub
  13   */
  14  
  15  namespace Ramsey\Uuid\Generator;
  16  
  17  use Exception;
  18  use InvalidArgumentException;
  19  use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
  20  
  21  /**
  22   * RandomGeneratorInterface provides functionality to generate strings of random
  23   * binary data
  24   */
  25  interface RandomGeneratorInterface
  26  {
  27      /**
  28       * Generates a string of random binary data of the specified length
  29       *
  30       * @param integer $length The number of bytes of random binary data to generate
  31       * @return string A binary string
  32       * @throws UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
  33       * @throws InvalidArgumentException
  34       * @throws Exception if it was not possible to gather sufficient entropy
  35       */
  36      public function generate($length);
  37  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer