libbtc
bitcoinclibrary
Main Page
Data Structures
Files
File List
Globals
libbtc
src
random.h
Go to the documentation of this file.
1
/*
2
3
The MIT License (MIT)
4
5
Copyright (c) 2015 Douglas J. Bakkum
6
7
Permission is hereby granted, free of charge, to any person obtaining
8
a copy of this software and associated documentation files (the "Software"),
9
to deal in the Software without restriction, including without limitation
10
the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
and/or sell copies of the Software, and to permit persons to whom the
12
Software is furnished to do so, subject to the following conditions:
13
14
The above copyright notice and this permission notice shall be included
15
in all copies or substantial portions of the Software.
16
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
21
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
OTHER DEALINGS IN THE SOFTWARE.
24
25
*/
26
27
28
#ifndef _RANDOM_H_
29
#define _RANDOM_H_
30
31
#include <stdint.h>
32
#include <stdlib.h>
33
34
#include "
btc/btc.h
"
35
36
void
random_init
(
void
);
37
btc_bool
random_bytes
(uint8_t* buf, uint32_t
len
,
const
uint8_t update_seed);
38
39
#endif
btc_bool
uint8_t btc_bool
Definition:
btc.h:34
random_bytes
btc_bool random_bytes(uint8_t *buf, uint32_t len, const uint8_t update_seed)
Definition:
random.c:57
random_init
void random_init(void)
Definition:
random.c:54
buffer::len
size_t len
Definition:
buffer.h:16
btc.h
Generated on Tue Oct 27 2015 18:34:52 for libbtc by
1.8.10