[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/ramsey/uuid/src/Generator/ -> RandomLibAdapter.php (summary)

This file is part of the ramsey/uuid library For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Copyright: Copyright (c) Ben Ramsey <[email protected]>
License: http://opensource.org/licenses/MIT MIT
File Size: 62 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

RandomLibAdapter:: (2 methods):
  __construct()
  generate()


Class: RandomLibAdapter  - X-Ref

RandomLibAdapter provides functionality to generate strings of random
binary data using the paragonie/random-lib library

__construct(Generator $generator = null)   X-Ref
Constructs a `RandomLibAdapter` using a `RandomLib\Generator`

By default, if no `Generator` is passed in, this creates a high-strength
generator to use when generating random binary data.

param: Generator $generator An paragonie/random-lib `Generator`

generate($length)   X-Ref
Generates a string of random binary data of the specified length

param: integer $length The number of bytes of random binary data to generate
return: string A binary string



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