/* SPDX-License-Identifier: GPL-3.0-or-later * Copyright © 2021-2022 The TokTok team. */ #include "fuzz_support.h" #include #include "../../toxcore/crypto_core.h" #include "../../toxcore/network.h" #include "../../toxcore/tox_private.h" std::unique_ptr fuzz_system(uint64_t &clock) { auto sys = std::make_unique(); sys->mono_time_callback = [](void *user_data) { return *static_cast(user_data); }; sys->mono_time_user_data = &clock; sys->rng = system_random(); // TODO(iphydf): Put fuzz_random here. sys->ns = system_network(); // TODO(iphydf): Put fuzz_network here. return sys; }