perf: 使用更简单的随机数生成器初始化方法

将高精度时钟初始化改为使用 time(nullptr) 以提高性能
This commit is contained in:
Zengtudor 2025-10-10 16:24:47 +08:00
parent 67b34507d8
commit 9dd416583b

View File

@ -5,7 +5,7 @@
#include <random>
using ll = int64_t;
std::mt19937 mt (std::chrono::high_resolution_clock::now);
std::mt19937 mt (time(nullptr));
std::uniform_int_distribution<ll> un(1,2e6);
int main(){