diff --git a/compiler/compile/OMRCompilation.cpp b/compiler/compile/OMRCompilation.cpp index 1e07e9be195..894acac2b15 100644 --- a/compiler/compile/OMRCompilation.cpp +++ b/compiler/compile/OMRCompilation.cpp @@ -333,10 +333,10 @@ OMR::Compilation::Compilation( _adhocRandom = new (m->trHeapMemory()) TR_RandomGenerator(options.getRandomSeed()); if (options.getOption(TR_RandomSeedSignatureHash)) { - int32_t hash = 0; + uint32_t hash = 0; for (const char *c = self()->signature(); *c; c++) - hash = 33*hash + (int32_t)(*c); - int32_t seed = _options->getRandomSeed(); + hash = 33*hash + (uint32_t)(*c); + uint32_t seed = _options->getRandomSeed(); seed ^= hash; _primaryRandom->setSeed(seed); _adhocRandom->setSeed(_primaryRandom->getRandom());