git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.6 / programs / lorem.h
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
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  * You may select, at your option, one of the above-listed licenses.
9  */
10
11 /* lorem ipsum generator */
12
13 #include <stddef.h>   /* size_t */
14
15 /*
16  * LOREM_genBuffer():
17  * Generate @size bytes of compressible data using lorem ipsum generator
18  * into provided @buffer.
19  */
20 void LOREM_genBuffer(void* buffer, size_t size, unsigned seed);
21
22 /*
23  * LOREM_genBlock():
24  * Similar to LOREM_genBuffer, with additional controls :
25  * - @first : generate the first sentence
26  * - @fill : fill the entire @buffer,
27  *           if ==0: generate one paragraph at most.
28  * @return : nb of bytes generated into @buffer.
29  */
30 size_t LOREM_genBlock(void* buffer, size_t size,
31                       unsigned seed,
32                       int first, int fill);