Debian Codegraph @

vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php

raw
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 <[email protected]>
10 * @license http://opensource.org/licenses/MIT MIT
11 */
12
13 declare(strict_types=1);
14
15 namespace Ramsey\Uuid\Generator;
16
17 /**
18 * A random generator generates strings of random binary data
19 */
20 interface RandomGeneratorInterface
21 {
22 /**
23 * Generates a string of randomized binary data
24 *
25 * @param int<1, max> $length The number of bytes to generate of random binary data
26 *
27 * @return string A binary string
28 */
29 public function generate(int $length): string;
30 }