From 56e9a0a87157beb7e1c11619a2fbad21527b4584 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 8 Feb 2007 17:21:51 +0000 Subject: [PATCH] Write pool_size function. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@771 38d2e660-2303-0410-9eaa-f027e97ec537 --- algos/randpool.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.25.1