1 /*
2  * Copyright (c) 2016-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under both the BSD-style license (found in the
6  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7  * in the COPYING file in the root directory of this source tree).
8  */
9 
10 /**
11  * Helper functions for fuzzing.
12  */
13 
14 #ifndef ZSTD_HELPERS_H
15 #define ZSTD_HELPERS_H
16 
17 #include "zstd.h"
18 #include <stdint.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 void FUZZ_setRandomParameters(ZSTD_CCtx *cctx, size_t srcSize, uint32_t *state);
25 
26 ZSTD_compressionParameters FUZZ_randomCParams(size_t srcSize, uint32_t *state);
27 ZSTD_frameParameters FUZZ_randomFParams(uint32_t *state);
28 ZSTD_parameters FUZZ_randomParams(size_t srcSize, uint32_t *state);
29 
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif /* ZSTD_HELPERS_H */
36