From commits-return-7362-archive-asf-public=cust-asf.ponee.io@trafodion.apache.org Wed Apr 25 18:27:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5AA96180679 for ; Wed, 25 Apr 2018 18:27:13 +0200 (CEST) Received: (qmail 27404 invoked by uid 500); 25 Apr 2018 16:27:12 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 27386 invoked by uid 99); 25 Apr 2018 16:27:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2018 16:27:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A8108F583E; Wed, 25 Apr 2018 16:27:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hzeller@apache.org To: commits@trafodion.apache.org Date: Wed, 25 Apr 2018 16:27:13 -0000 Message-Id: <93261240e5ec493e86944e3956dbe12c@git.apache.org> In-Reply-To: <99fb8261d73949298cddf6d0faea1307@git.apache.org> References: <99fb8261d73949298cddf6d0faea1307@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/4] trafodion git commit: [TRAFODION-3042] Addressed review comment [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 Authored: Tue Apr 24 23:22:26 2018 +0000 Committer: Hans Zeller 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;