Make lib/rand.c a stand-alone library
[fio.git] / lib / rand.c
index 12916cf00ddfd2b6d6ec31e82258300836cb3537..3f60a67ab7a9c195260405024d7badba18b0a871 100644 (file)
@@ -36,7 +36,7 @@
 #include <string.h>
 #include <assert.h>
 #include "rand.h"
-#include "lib/pattern.h"
+#include "pattern.h"
 #include "../hash.h"
 
 int arch_random;
@@ -46,7 +46,7 @@ static inline uint64_t __seed(uint64_t x, uint64_t m)
        return (x < m) ? x + m : x;
 }
 
-void __init_rand32(struct taus88_state *state, unsigned int seed)
+static void __init_rand32(struct taus88_state *state, unsigned int seed)
 {
        int cranks = 6;
 
@@ -60,7 +60,7 @@ void __init_rand32(struct taus88_state *state, unsigned int seed)
                __rand32(state);
 }
 
-void __init_rand64(struct taus258_state *state, uint64_t seed)
+static void __init_rand64(struct taus258_state *state, uint64_t seed)
 {
        int cranks = 6;