OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fad6a3f
)
[libFuzzer] fix UB and simplify the computation of the RNG seed (https://llvm.org...
author
Kostya Serebryany
<kcc@google.com>
Tue, 27 Dec 2016 19:51:34 +0000
(19:51 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Tue, 27 Dec 2016 19:51:34 +0000
(19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290622
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Fuzzer/FuzzerDriver.cpp
patch
|
blob
|
history
diff --git
a/lib/Fuzzer/FuzzerDriver.cpp
b/lib/Fuzzer/FuzzerDriver.cpp
index
95b0721
..
f45ed04
100644
(file)
--- a/
lib/Fuzzer/FuzzerDriver.cpp
+++ b/
lib/Fuzzer/FuzzerDriver.cpp
@@
-442,8
+442,8
@@
int FuzzerDriver(int *argc, char ***argv, UserCallback Callback) {
unsigned Seed = Flags.seed;
// Initialize Seed.
if (Seed == 0)
- Seed =
(std::chrono::system_clock::now().time_since_epoch().count() << 10) +
-
GetPid();
+ Seed =
+
std::chrono::system_clock::now().time_since_epoch().count() +
GetPid();
if (Flags.verbosity)
Printf("INFO: Seed: %u\n", Seed);