ZMZ91 commented on code in PR #14073:
URL: https://github.com/apache/arrow/pull/14073#discussion_r990574834


##########
cpp/src/gandiva/random_generator_holder.h:
##########
@@ -40,10 +40,9 @@ class GANDIVA_EXPORT RandomGeneratorHolder : public 
FunctionHolder {
   double operator()() { return distribution_(generator_); }
 
  private:
-  explicit RandomGeneratorHolder(int seed) : distribution_(0, 1) {
-    int64_t seed64 = static_cast<int64_t>(seed);
-    seed64 = (seed64 ^ 0x00000005DEECE66D) & 0x0000ffffffffffff;
-    generator_.seed(static_cast<uint64_t>(seed64));
+  explicit RandomGeneratorHolder(int64_t seed) : distribution_(0, 1) {
+    seed = (seed ^ 0x00000005DEECE66D) & 0x0000ffffffffffff;

Review Comment:
   Actually I'm not clear why it's this formula and just keep it as since the 
beginning.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to