cast to proper type (#38)
Co-authored-by: Paweł Marciniak <sunwire+git@gmail.com>
This commit is contained in:
@@ -602,7 +602,7 @@ std::string randomKey(int length) {
|
||||
if (random.is_open()) {
|
||||
for (int i = 0; i < length; i++) {
|
||||
random.read(reinterpret_cast<char *>(&rnd), 1);
|
||||
retval << std::hex << rnd;
|
||||
retval << std::hex << std::setfill('0') << setw(2) << static_cast<int>(rnd);
|
||||
}
|
||||
random.close();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user