You are here

public static function SchemaMetatagManagerInterface::randomString in Schema.org Metatag 7

Generates a pseudo-random string of ASCII characters of codes 32 to 126.

Parameters

int $length: Length of random string to generate.

Return value

string Pseudo-randomly generated unique string including special characters.

1 method overrides SchemaMetatagManagerInterface::randomString()
SchemaMetatagManager::randomString in src/SchemaMetatagManager.php
Generates a pseudo-random string of ASCII characters of codes 32 to 126.

File

src/SchemaMetatagManagerInterface.php, line 177

Class

SchemaMetatagManagerInterface
Interface SchemaMetatagManagerInterface.

Code

public static function randomString($length = 8);