Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
 
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 of random binary data to generate
26
     *
27
     * @return string A binary string
28
     */
29
    public function generate(int $length): string;
30
}