An open API service indexing awesome lists of open source software.

https://github.com/beliumgl/rsg

A project written in C++17 that allows you to generate strings with different modes, different character sets, and any length.
https://github.com/beliumgl/rsg

cpp cpp17 random random-generation random-string-generation random-string-generator random-string-generators strings

Last synced: 4 months ago
JSON representation

A project written in C++17 that allows you to generate strings with different modes, different character sets, and any length.

Awesome Lists containing this project

README

          

# Random String Generator
A project written in C++17 that allows you to generate strings with different modes, different character sets, and any length (within a specified range).

# Build
```
mkdir build && cd build
cmake ..
cmake --build .
```
# Run
```
./testapp
```

# Usage
```cpp
#include

#include

int main() {
unsigned short length = 20;
unsigned char mode = 0; // truly random
// Example usage
RSG::RSG rsg = RSG::RSG("charset (you can edit this btw)", length, mode);

std::cout << rsg.Generate() << '\n';
}
```