1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openLuat-luatos-soc-air101

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
random.h 1.2 КБ
Копировать Редактировать Исходные данные Просмотреть построчно История
Wendal Chen Отправлено 3 лет назад d72653d
/*
* @file random.h
* @brief Random number generator
* @copyright (c) 2010-2011, Jouni Malinen <j@w1.fi>
*
*
* @note This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* @note Alternatively, this software may be distributed under the terms of BSD
* license.
*
* @note See README and COPYING for more details.
*/
#ifndef RANDOM_H
#define RANDOM_H
/**
* @brief This function is used to add number to random pool
*
* @param[in] *buf number to add
* @param[in] len number count
*
* @return None
*
* @note None
*/
void random_add_randomness(const void *buf, size_t len);
/**
* @brief This function is used to get random number with len from
random pool
*
* @param[in] *buf used to save random number
* @param[in] len length of random number
*
* @retval 0 success
* @retval other failed
*
* @note None
*/
int random_get_bytes(void *buf, size_t len);
#define random_mark_pool_ready() do { } while (0)
/** random pool ready */
#define random_pool_ready() 1
#endif /* RANDOM_H */

Комментарий ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/openLuat-luatos-soc-air101.git
git@gitlife.ru:oschina-mirror/openLuat-luatos-soc-air101.git
oschina-mirror
openLuat-luatos-soc-air101
openLuat-luatos-soc-air101
v1022.air601