generator: pass param by const&
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c615076182
commit
55659bd243
|
@ -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..?
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Reference in New Issue