mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 00:31:33 +00:00
frida mode macOs warning fix, syscall being deprecated, using pthread_threadid_np available since snow leopard
This commit is contained in:
parent
1a79a36762
commit
fc48a58e64
@ -341,8 +341,14 @@ void instrument_init(void) {
|
||||
* parallel fuzzing. The seed itself, doesn't have to be random, it
|
||||
* just needs to be different for each instance.
|
||||
*/
|
||||
guint64 tid;
|
||||
#if defined(__APPLE__)
|
||||
pthread_threadid_np(NULL, &tid);
|
||||
#else
|
||||
tid = syscall(SYS_gettid);
|
||||
#endif
|
||||
instrument_hash_seed = g_get_monotonic_time() ^
|
||||
(((guint64)getpid()) << 32) ^ syscall(SYS_gettid);
|
||||
(((guint64)getpid()) << 32) ^ tid;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user