Skip to content
Snippets Groups Projects
Commit 200f0c4a authored by Giovanna Lazzari Miotto's avatar Giovanna Lazzari Miotto :mushroom:
Browse files

change random data

parent f938ee7f
No related branches found
No related tags found
No related merge requests found
Pipeline #8029113 failed
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <string> #include <string>
void generate_random_data(char *buffer, size_t length) { void generate_random_data(char *buffer, size_t length) {
const char charset[] = "0123456789,.-#'?!"; const char charset[] = "0123456789?!";
size_t charset_size = sizeof(charset) - 1; size_t charset_size = sizeof(charset) - 1;
for (size_t i = 0; i < length; i++) { for (size_t i = 0; i < length; i++) {
buffer[i] = charset[rand() % charset_size]; buffer[i] = charset[rand() % charset_size];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment