We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18d2646 commit 1a373eeCopy full SHA for 1a373ee
obj_gen.cpp
@@ -82,7 +82,7 @@ unsigned long long random_generator::get_random()
82
83
rn = jrand48(m_data_blob);
84
llrn |= rn & 0xffffffff; // reset the sign extension bits of negative numbers
85
- llrn &= 0x8000000000000000; // avoid any trouble from sign mismatch and negative numbers
+ llrn &= 0x7FFFFFFFFFFFFFFF; // avoid any trouble from sign mismatch and negative numbers
86
#else
87
#error no random function
88
#endif
0 commit comments