summaryrefslogtreecommitdiffstats
path: root/btime.c
diff options
context:
space:
mode:
Diffstat (limited to 'btime.c')
-rw-r--r--btime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btime.c b/btime.c
index 5e151be..9deca7d 100644
--- a/btime.c
+++ b/btime.c
@@ -168,8 +168,8 @@ static void gen_cookie(char *s)
*a++ = 'B';
*a++ = 'T';
for (i = 0; i < COOKIE_RANDOM_PARTS; i++) {
- *(int *)a = random();
- a += sizeof(int);
+ *(int32_t *)a = (int32_t)random();
+ a += sizeof(int32_t);
}
*a = '\n';
}