mirror of
https://gitcode.com/Zengtudor/alg2025.git
synced 2025-10-17 21:42:25 +00:00
perf: 使用更简单的随机数生成器初始化方法
将高精度时钟初始化改为使用 time(nullptr) 以提高性能
This commit is contained in:
parent
67b34507d8
commit
9dd416583b
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user