diff options
-rw-r--r-- | source/fitz/random.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/random.c b/source/fitz/random.c index 95e1990c..1f51b488 100644 --- a/source/fitz/random.c +++ b/source/fitz/random.c @@ -70,7 +70,8 @@ uint16_t *fz_seed48(fz_context *ctx, uint16_t *s) void fz_srand48(fz_context *ctx, int32_t seed) { - fz_seed48(ctx, (uint16_t [3]){ 0x330e, seed, seed>>16 }); + uint16_t p[3] = { 0x330e, seed, seed>>16 }; + fz_seed48(ctx, p); } void fz_memrnd(fz_context *ctx, unsigned char *data, int len) |