Skip to content

Commit

Permalink
[JuPedSim} Small modifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoueraud87 authored and behrisch committed Apr 5, 2024
1 parent c096c4f commit 9e0a9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/utils/common/RandHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ class RandHelper {

template<class T>
static void shuffle(std::vector<T>& v, SumoRNG* rng = nullptr) {
for (int i = v.end() - v.begin() - 1; i > 0; --i) {
std::swap(v.begin()[i], v.begin()[rand(i, rng)]);
for (int i = (int)(v.size() - 1); i > 0; --i) {
std::swap(*(v.begin() + i), *(v.begin() + rand(i, rng)));
}
}

Expand Down
27 changes: 0 additions & 27 deletions tests/sumo/pedestrian_model/jupedsim/rerouter/aggregated.xml

This file was deleted.

0 comments on commit 9e0a9d9

Please sign in to comment.