26#ifndef MYSQL_HARNESS_RANDOM_GENERATOR_INCLUDED
27#define MYSQL_HARNESS_RANDOM_GENERATOR_INCLUDED
32#include "harness_export.h"
40 AlphabetLowercase = 0x2,
41 AlphabetUppercase = 0x4,
42 AlphabetSpecial = 0x8,
58 unsigned length,
unsigned alphabet_mask = AlphabetAll) = 0;
87 std::string generate_identifier(
88 unsigned length,
unsigned alphabet_mask = AlphabetAll)
override;
89 std::string generate_strong_password(
unsigned length)
override;
95 std::string generate_identifier(
unsigned length,
unsigned)
override;
97 std::string generate_strong_password(
unsigned length)
override;
Definition: random_generator.h:92
Definition: random_generator.h:36
RandomGeneratorInterface & operator=(const RandomGeneratorInterface &)=default
virtual std::string generate_identifier(unsigned length, unsigned alphabet_mask=AlphabetAll)=0
Generates a random string out of selected alphabet.
AlphabetContent
Definition: random_generator.h:38
virtual std::string generate_strong_password(unsigned length)=0
Generates a random password that adheres to the STRONG password requirements:
RandomGeneratorInterface()=default
virtual ~RandomGeneratorInterface()
RandomGeneratorInterface(const RandomGeneratorInterface &)=default
Definition: random_generator.h:82
std::mt19937 urng
Definition: random_generator.h:83
RandomGenerator()
Definition: random_generator.h:86
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Definition: gcs_xcom_synode.h:64