Use the override specifier (C++11) where we expect to be overriding the virtual function of a base class

This commit is contained in:
practicalswift
2017-06-20 21:58:56 +02:00
parent acb11535cb
commit aa95947ded
18 changed files with 68 additions and 68 deletions

View File

@@ -27,7 +27,7 @@ public:
insecure_rand = FastRandomContext(true);
}
int RandomInt(int nMax)
int RandomInt(int nMax) override
{
state = (CHashWriter(SER_GETHASH, 0) << state).GetHash().GetCheapHash();
return (unsigned int)(state % nMax);