Ticket #51838: qqwing-wrapper_cpp.diff
File qqwing-wrapper_cpp.diff, 466 bytes (added by arboz@…, 8 years ago) |
---|
Line | |
---|---|
1 | *** qqwing-wrapper.orig.cpp 2016-07-13 16:39:08.000000000 +0900 |
2 | --- qqwing-wrapper.cpp 2016-07-13 16:47:37.000000000 +0900 |
3 | *************** |
4 | *** 47,53 **** |
5 | g_mutex_lock(&mutex); |
6 | if (!seeded) |
7 | { |
8 | ! srand(time(nullptr)); |
9 | seeded = true; |
10 | } |
11 | g_mutex_unlock(&mutex); |
12 | --- 47,53 ---- |
13 | g_mutex_lock(&mutex); |
14 | if (!seeded) |
15 | { |
16 | ! srand(time(NULL)); |
17 | seeded = true; |
18 | } |
19 | g_mutex_unlock(&mutex); |