trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hzel...@apache.org
Subject [3/4] trafodion git commit: [TRAFODION-3042] Addressed review comment
Date Wed, 25 Apr 2018 16:27:13 GMT
[TRAFODION-3042] Addressed review comment


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/80a0113f
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/80a0113f
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/80a0113f

Branch: refs/heads/master
Commit: 80a0113f4fd267a367d58a589f95dd33400cbd8a
Parents: 4f83472
Author: Hans Zeller <hzeller@apache.org>
Authored: Tue Apr 24 23:22:26 2018 +0000
Committer: Hans Zeller <hzeller@apache.org>
Committed: Tue Apr 24 23:22:26 2018 +0000

----------------------------------------------------------------------
 core/sql/exp/exp_function.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/80a0113f/core/sql/exp/exp_function.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_function.cpp b/core/sql/exp/exp_function.cpp
index 109e06d..70eb59c 100644
--- a/core/sql/exp/exp_function.cpp
+++ b/core/sql/exp/exp_function.cpp
@@ -5953,7 +5953,7 @@ void ExFunctionRandomNum::initSeed(char *op_data[])
       // we call this method again within a short time. The eval() method
       // below doesn't handle seed values that are close to each other
       // very well.
-      seed_ = (((Int64) seed_) * 1664525L + 1664525L) % 2147483648;
+      seed_ = (((Int64) seed_) * 1664525L + 1013904223L) % 2147483648;
 
       if (seed_<0)
         seed_ += 2147483647;


Mime
View raw message