25#ifndef MYSQL_HARNESS_RANDOM_GENERATOR_INCLUDED
26#define MYSQL_HARNESS_RANDOM_GENERATOR_INCLUDED
31#include "harness_export.h"
39 AlphabetLowercase = 0x2,
40 AlphabetUppercase = 0x4,
41 AlphabetSpecial = 0x8,
57 unsigned length,
unsigned alphabet_mask = AlphabetAll) = 0;
86 std::string generate_identifier(
87 unsigned length,
unsigned alphabet_mask = AlphabetAll)
override;
88 std::string generate_strong_password(
unsigned length)
override;
94 std::string generate_identifier(
unsigned length,
unsigned)
override;
96 std::string generate_strong_password(
unsigned length)
override;
Definition: random_generator.h:91
Definition: random_generator.h:35
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:37
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:81
std::mt19937 urng
Definition: random_generator.h:82
RandomGenerator()
Definition: random_generator.h:85
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:75
Definition: varlen_sort.h:183