[go: up one dir, main page]

File: randombytes.h

package info (click to toggle)
libmobi 0.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,916 kB
  • sloc: ansic: 19,055; sh: 4,650; makefile: 102
file content (25 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/** @file randombytes.h
 *
 * Copyright (c) 2021 Bartek Fabiszewski
 * http://www.fabiszewski.net
 *
 * This file is part of libmobi.
 * Licensed under LGPL, either version 3, or any later.
 * See <http://www.gnu.org/licenses/>
 */

#ifndef libmobi_randombytes_h
#define libmobi_randombytes_h

#include "mobi.h"

/**
 @brief Write n random bytes of high quality to buf
 
 @param[in,out] buf Buffer to be filled with random bytes
 @param[in] len Buffer length
 @return On success returns MOBI_SUCCESS
 */
MOBI_RET mobi_randombytes(void *buf, const size_t len);

#endif