aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-09-19 20:31:16 +0200
committerMattias Andrée <maandree@kth.se>2024-09-19 20:31:16 +0200
commitfd853e34e2dbfe51b00c9f69335b103f1c1fdab2 (patch)
treee92f4d358dacf994dd52b100676b5b47791ddbc2 /common.h
parentmisc (diff)
downloaddeadshred-fd853e34e2dbfe51b00c9f69335b103f1c1fdab2.tar.gz
deadshred-fd853e34e2dbfe51b00c9f69335b103f1c1fdab2.tar.bz2
deadshred-fd853e34e2dbfe51b00c9f69335b103f1c1fdab2.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common.h b/common.h
index c1dbcfc..241f280 100644
--- a/common.h
+++ b/common.h
@@ -76,11 +76,12 @@ const char *wravg_get(struct status *s);
/* rnd.c */
+void init_random(int fd, const char *fname, off_t blksize);
+void destroy_random(void);
#if defined(__GNUC__)
-__attribute__((__const__))
+__attribute__((__pure__))
#endif
size_t max_blksize(void);
-void init_random(int fd, const char *fname);
const char *get_random(size_t needed);
void used_random(ssize_t amount);