#include "Dictionary.h"
#include <Wt/WApplication.h>
#include <fstream>
#include <iostream>
#include <random>
Go to the source code of this file.
◆ randomWord()
Definition at line 14 of file Dictionary.C.
15{
18 dict.open(Wt::WApplication::appRoot() +
"dict-nl.txt");
19 } else {
20 dict.open(Wt::WApplication::appRoot() +
"dict.txt");
21 }
22
28 }
31
32 std::random_device
rd;
33 std::mt19937
gen(
rd());
36
39 }
41 for (
unsigned int i = 0;
i <
retval.size(); ++
i) {
43 std::cerr <<
"word " <<
retval <<
" contains illegal data at pos " <<
i <<
'\n';
44 }
45 }
46
48}
Wt::Auth::Dbo::UserDatabase< AuthInfo > UserDatabase