28 lines
564 B
C++
28 lines
564 B
C++
|
|
#include "./includes/generator.h"
|
|
|
|
|
|
std::string gen_string() { // 90^size posibilities
|
|
std::string randomstring;
|
|
for (int i = 0; i < 5; ++i) {
|
|
randomstring += singlechar(generator);
|
|
}
|
|
return randomstring;
|
|
}
|
|
|
|
std::string gen_unsuccesfull_string() { // 90^size posibilities
|
|
std::string randomstring;
|
|
for (int i = 0; i < 4; ++i) {
|
|
randomstring += singlechar(generator);//
|
|
}
|
|
return randomstring;
|
|
}
|
|
|
|
int gen_int(){
|
|
return insert_int(generator);
|
|
}
|
|
|
|
int gen_unsuccesfull_int(){
|
|
return noninsert_int(generator);
|
|
}
|