| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* This file is part of the ramsey/uuid library |
| 5 |
* |
| 6 |
* For the full copyright and license information, please view the LICENSE |
| 7 |
* file that was distributed with this source code. |
| 8 |
* |
| 9 |
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> |
| 10 |
* @license http://opensource.org/licenses/MIT MIT |
| 11 |
*/ |
| 12 |
declare (strict_types=1); |
| 13 |
namespace Dudlewebs\WPMCS\GCP\Ramsey\Uuid\Generator; |
| 14 |
|
| 15 |
/** |
| 16 |
* A random generator generates strings of random binary data |
| 17 |
*/ |
| 18 |
interface RandomGeneratorInterface |
| 19 |
{ |
| 20 |
/** |
| 21 |
* Generates a string of randomized binary data |
| 22 |
* |
| 23 |
* @param int<1, max> $length The number of bytes to generate of random binary data |
| 24 |
* |
| 25 |
* @return string A binary string |
| 26 |
*/ |
| 27 |
public function generate(int $length) : string; |
| 28 |
} |
| 29 |
|