generator: pass param by const&
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-17 07:22:19 +01:00
parent c615076182
commit 55659bd243
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ auto Generator::generate_blocks(unsigned int k_blocks) -> std::string {
return r;
}
auto Generator::generate_random_data(uint n) -> std::string {
auto Generator::generate_random_data(const unsigned int& n) -> std::string {
std::lock_guard<std::mutex> lg(mtx);
if (n == 0) {
// do not do this..?

View File

@ -25,7 +25,7 @@ public:
~Generator() noexcept;
/* n is the number of random bytes to generate */
auto generate_random_data(uint n) -> std::string;
auto generate_random_data(const unsigned int& n) -> std::string;
auto reseed(const std::string& s) -> void;