--- a/hotspot/src/share/vm/runtime/os.hpp Tue Jun 27 12:27:27 2017 +0000
+++ b/hotspot/src/share/vm/runtime/os.hpp Wed Jun 28 16:14:20 2017 -0400
@@ -743,8 +743,8 @@
static int sigexitnum_pd();
// random number generation
- static long random(); // return 32bit pseudorandom number
- static void init_random(long initval); // initialize random sequence
+ static int random(); // return 32bit pseudorandom number
+ static void init_random(unsigned int initval); // initialize random sequence
// Structured OS Exception support
static void os_exception_wrapper(java_call_t f, JavaValue* value, const methodHandle& method, JavaCallArguments* args, Thread* thread);
@@ -956,7 +956,7 @@
protected:
- static long _rand_seed; // seed for random number generator
+ static volatile unsigned int _rand_seed; // seed for random number generator
static int _processor_count; // number of processors
static int _initial_active_processor_count; // number of active processors during initialization.