diff options
Diffstat (limited to 'source/base/base_rand.h')
| -rw-r--r-- | source/base/base_rand.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/base/base_rand.h b/source/base/base_rand.h index 86acafe..bfdab0f 100644 --- a/source/base/base_rand.h +++ b/source/base/base_rand.h | |||
| @@ -12,9 +12,8 @@ | |||
| 12 | internal u64 | 12 | internal u64 |
| 13 | generate_random_u64(u64 constant) | 13 | generate_random_u64(u64 constant) |
| 14 | { | 14 | { |
| 15 | 15 | time_t current_time = time(0); | |
| 16 | time_t current_time = time(NULL); | 16 | constant = current_time ^ constant; |
| 17 | return current_time ^ constant; | ||
| 18 | 17 | ||
| 19 | constant += 0x9e3779b97f4a7c15; | 18 | constant += 0x9e3779b97f4a7c15; |
| 20 | 19 | ||
