diff --git a/cpp/open3d/utility/Random.h b/cpp/open3d/utility/Random.h index 9445c03666b..1ea135a7e50 100644 --- a/cpp/open3d/utility/Random.h +++ b/cpp/open3d/utility/Random.h @@ -29,8 +29,8 @@ void Seed(const int seed); /// /// { /// // Put the lock and the call to the engine in the same scope. -/// std::lock_guard lock(*utility::random::GetMutex()); -/// std::shuffle(vals.begin(), vals.end(), *utility::random::GetEngine()); +/// tbb::spin_mutex::scoped_lock lock(utility::random::GetMutex()); +/// std::shuffle(vals.begin(), vals.end(), utility::random::GetEngine()); /// } /// ``` std::mt19937& GetEngine();