MySQL 9.3.0
Source Code Documentation
mrs::authentication::GeneratorNonceCharacters Struct Reference

Generate nonce character. More...

Inheritance diagram for mrs::authentication::GeneratorNonceCharacters:
[legend]

Static Public Member Functions

static std::vector< char > get_prinatable_characters ()
 Return array containing only ASCI printable characters. More...
 
static char generate ()
 
- Static Public Member Functions inherited from helper::GeneratorBase
static int get_random_int (int range)
 Static method that generates random number. More...
 

Detailed Description

Generate nonce character.

The nonce must consist only from ASCI characters that are printable.

Member Function Documentation

◆ generate()

static char mrs::authentication::GeneratorNonceCharacters::generate ( )
inlinestatic

◆ get_prinatable_characters()

static std::vector< char > mrs::authentication::GeneratorNonceCharacters::get_prinatable_characters ( )
inlinestatic

Return array containing only ASCI printable characters.

The fact is that printable characters are all in following range: 32 - 126, still to have simpler code that needs no double checking, the array is provides back.

Nonce excludes comma from the range.


The documentation for this struct was generated from the following file: