diff options
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 9e3f1d4e1..607f44a28 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -501,7 +501,7 @@ std::string InspIRCd::GenRandomStr(unsigned int length, bool printable) unsigned long InspIRCd::GenRandomInt(unsigned long max) { unsigned long rv; - GenRandom((char*)&rv, sizeof(rv)); + GenRandom(reinterpret_cast<char*>(&rv), sizeof(rv)); return rv % max; } |
