2 * Copyright (c) Meta Platforms, Inc. and affiliates.
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.
11 /* lorem ipsum generator */
13 #include <stddef.h> /* size_t */
17 * Generate @size bytes of compressible data using lorem ipsum generator
18 * into provided @buffer.
20 void LOREM_genBuffer(void* buffer, size_t size, unsigned seed);
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.
30 size_t LOREM_genBlock(void* buffer, size_t size,