Category : generate

$ [email protected] autojsoncxx % python autojsoncxx.py –input=persondef.json –output=person.hpp Traceback (most recent call last): File "autojsoncxx.py", line 93, in <module> NOESCAPE_CHARACTERS = bytes(string.digits + string.ascii_letters + ‘ ‘, encoding=’utf8’) TypeError: str() takes at most 1 argument (2 given) I am trying to use autojsoncxx. Was able to follow the steps to run the following: cake . ..

Read more

i wanna generate a CSRF token with a 24 characters using openssl. i found a function to generate random data in openssl lib – RAND_bytes but on output i get a 32 chars token with uppercase letters, sometimes with some symbols like / how to generate a token only with numbers and lowercase letters and ..

Read more

I need to fix the code that generates the grid. It should fit in the graphics window. My current is also drawn outside the graphics window and it is not always a regular grid. std::vector<QPoint> Draw::grid(int n, int height){ std::vector<QPoint> points; double a = rand()%100; double b = rand()%100; int size = sqrt(n); points.push_back(QPoint(10,10)); for(int ..

Read more