From 3e7bbabd9406cd1b04029358a1ac2130e31e95f6 Mon Sep 17 00:00:00 2001 From: bobo339 <3219323925@qq.com> Date: Fri, 20 Dec 2024 22:33:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新了部分注释 --- LibCarla/source/test/test.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/LibCarla/source/test/test.cpp b/LibCarla/source/test/test.cpp index 950aa284cb..9e26737f12 100644 --- a/LibCarla/source/test/test.cpp +++ b/LibCarla/source/test/test.cpp @@ -1,14 +1,13 @@ -// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma -// de Barcelona (UAB). -// -// This work is licensed under the terms of the MIT license. -// For a copy, see . +//版权所有(c) 2017,巴塞罗那自治大学(UAB)的计算机视觉中心(CVC) +//本作品依据 MIT 许可证的条款获得许可 +// 如需获取副本,请访问. #ifdef LIBCARLA_NO_EXCEPTIONS - +// 包含CARLA异常处理相关的头文件 #include +// 包含CARLA日志记录相关的头文件 #include - +// 包含C++标准库中的异常处理头文件 #include namespace carla { @@ -28,7 +27,8 @@ namespace carla { #include "Random.h" namespace util { - + // 定义一个线程局部变量 _engine,其类型为std::mt19937_64(一个基于梅森旋转算法的64位伪随机数生成器), + // 并使用std::random_device来初始化它,以获取一个初始的随机种子 thread_local std::mt19937_64 Random::_engine((std::random_device())()); } // namespace util