aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-01-18 14:00:44 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-01-18 14:00:44 +0000
commit1fee9a39017d946152eab4f29e0d143db13ae951 (patch)
treed57687863ff00a6ef149843d7023850d8613fe61 /src/libutil/util.c
parent5570daed2d0faafbde564cae36a0b4764e266c4a (diff)
downloadrspamd-1fee9a39017d946152eab4f29e0d143db13ae951.tar.gz
rspamd-1fee9a39017d946152eab4f29e0d143db13ae951.zip
[Fix] Make words selection random deterministic upon content
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index 31bb86200..04200e36d 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2023 Vsevolod Stakhov
+ * Copyright 2024 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1754,7 +1754,7 @@ rspamd_fast_random_seed(void)
}
/* wyrand */
-static inline uint64_t
+inline uint64_t
rspamd_random_uint64_fast_seed(uint64_t *seed)
{
*seed += UINT64_C(0xa0761d6478bd642f);