From: asterix Date: Thu, 8 Feb 2007 17:21:51 +0000 (+0000) Subject: Write pool_size function. X-Git-Tag: 1.0.0~470 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=56e9a0a87157beb7e1c11619a2fbad21527b4584;p=bertos.git Write pool_size function. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@771 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/algos/randpool.c b/algos/randpool.c index 92751dd7..e8c74229 100755 --- a/algos/randpool.c +++ b/algos/randpool.c @@ -13,8 +13,8 @@ /*#* *#* $Log$ - *#* Revision 1.4 2007/02/08 17:18:00 asterix - *#* Write add_data and stir function. Typos + *#* Revision 1.5 2007/02/08 17:21:51 asterix + *#* Write pool_size function. *#* *#* Revision 1.3 2007/02/08 14:25:29 asterix *#* Write static funcion push_byte. @@ -140,8 +140,12 @@ void add_data(EntrPool *pool, void *data, size_t n_bit) pool->last_counter = event; } +/** + * Get the actual value of entropy. + */ size_t pool_size(EntrPool *pool) { + return pool->entropy; } void get_bit(EntrPool *pool, void *data, size_t n_bit)