X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/09abefeb928cd7ea4679407a6b4387d4f75beaa9..5a006fa396cfcc8a91a8284f0d625b2a9a2565c9:/teshsuite/mc/dwarf-expression/dwarf-expression.cpp diff --git a/teshsuite/mc/dwarf-expression/dwarf-expression.cpp b/teshsuite/mc/dwarf-expression/dwarf-expression.cpp index 23b7b3d996..3853ce5f78 100644 --- a/teshsuite/mc/dwarf-expression/dwarf-expression.cpp +++ b/teshsuite/mc/dwarf-expression/dwarf-expression.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -17,10 +17,13 @@ #include #include #include -#include -#include +#include +#include -static std::default_random_engine rnd_engine; +static uintptr_t rnd_engine() +{ + return simgrid::xbt::random::uniform_int(std::numeric_limits::min(), std::numeric_limits::max()); +} static uintptr_t eval_binary_operation(simgrid::dwarf::ExpressionContext const& state, uint8_t op, uintptr_t a, uintptr_t b) @@ -146,7 +149,7 @@ static void test_deref(simgrid::dwarf::ExpressionContext const& state) int main() { auto* process = new simgrid::mc::RemoteProcess(getpid()); - process->init(); + process->init(nullptr, nullptr); simgrid::dwarf::ExpressionContext state; state.address_space = (simgrid::mc::AddressSpace*) process;