Back to Joomla project (class list)

Class Randval - list of methods

Generates cryptographically-secure random values.

Extends

Package: Joomla\CMS\Encrypt
Copyright: (C) 2016 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Encrypt/Randval.php
Project: Joomla

Method Summary

public string
(mixed $bytes = 32)

Returns a cryptographically secure random value.
Parameters
  • int $bytes How many bytes to return
Returns
  • string
Show source code of this method: generate Source Code

Tags Summary

Since
4.0.0