mirror of
https://github.com/lux-tel/libsession-util.git
synced 2026-10-30 20:25:11 +00:00
25 lines
487 B
C
25 lines
487 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "export.h"
|
|
|
|
/// API: crypto/session_random
|
|
///
|
|
/// Wrapper around the randombytes_buf function.
|
|
///
|
|
/// Inputs:
|
|
/// - `size` -- [in] number of bytes to be generated.
|
|
///
|
|
/// Outputs:
|
|
/// - `unsigned char*` -- pointer to random bytes of `size` bytes. The caller is responsible for
|
|
/// freeing the data when done!
|
|
LIBSESSION_EXPORT unsigned char* session_random(size_t size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |