about summary refs log tree commit diff
path: root/src/afl-as.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-05-19 19:51:54 +0200
committervan Hauser <vh@thc.org>2020-05-19 19:51:54 +0200
commit25fbec663838cd23908042f4a8fca175ca77c046 (patch)
tree7978c662ec3d11c32a4aab6344e2b6773168dbcc /src/afl-as.c
parentae6c30a71113fbebe3aca7fcdf6e007ae680c34b (diff)
downloadafl++-25fbec663838cd23908042f4a8fca175ca77c046.tar.gz
if no master is present a slave becomes a temporary master
Diffstat (limited to 'src/afl-as.c')
-rw-r--r--src/afl-as.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afl-as.c b/src/afl-as.c
index f153c043..f16d6060 100644
--- a/src/afl-as.c
+++ b/src/afl-as.c
@@ -232,8 +232,8 @@ static void edit_params(int argc, char **argv) {
 
   }
 
-  modified_file =
-      alloc_printf("%s/.afl-%u-%u-%u.s", tmp_dir, (u32)getpid(), (u32)time(NULL), (u32)random());
+  modified_file = alloc_printf("%s/.afl-%u-%u-%u.s", tmp_dir, (u32)getpid(),
+                               (u32)time(NULL), (u32)random());
 
 wrap_things_up:
 
@@ -592,8 +592,8 @@ int main(int argc, char **argv) {
   rand_seed = tv.tv_sec ^ tv.tv_usec ^ getpid();
   // in fast systems where pids can repeat in the same seconds we need this
   for (i = 1; i < argc; i++)
-   for (j = 0; j < strlen(argv[i]); j++)
-     rand_seed += argv[i][j];
+    for (j = 0; j < strlen(argv[i]); j++)
+      rand_seed += argv[i][j];
 
   srandom(rand_seed);