You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2019/05/14 20:05:17 UTC
[qpid-proton] branch master updated: NO-JIRA: [C++] Avoid warning
from asan when testing on 32 bit machine
This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push:
new aaabe4d NO-JIRA: [C++] Avoid warning from asan when testing on 32 bit machine
aaabe4d is described below
commit aaabe4d3ebbfd9396c3a1ad0e203bbbfbc4e212b
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Tue May 14 16:04:12 2019 -0400
NO-JIRA: [C++] Avoid warning from asan when testing on 32 bit machine
---
cpp/src/uuid.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpp/src/uuid.cpp b/cpp/src/uuid.cpp
index d114388..ec3880c 100644
--- a/cpp/src/uuid.cpp
+++ b/cpp/src/uuid.cpp
@@ -45,8 +45,8 @@ struct seed {
seed() {
// A hash of time and PID, time alone is a bad seed as programs started
// within the same second will get the same seed.
- long secs = time(0);
- long pid = GETPID();
+ unsigned long secs = time(0);
+ unsigned long pid = GETPID();
std::srand(((secs*181)*((pid-83)*359))%104729);
}
} seed_;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org