projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove randpool_save. Add randpool_pool.
[bertos.git]
/
algos
/
randpool.c
diff --git
a/algos/randpool.c
b/algos/randpool.c
index 63a2716a6fa8a9b89145e1aef5b34eed1f1c0984..14aa9845d12e7092aec97be755b34373e9ae53db 100755
(executable)
--- a/
algos/randpool.c
+++ b/
algos/randpool.c
@@
-13,8
+13,8
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
- *#* Revision 1.1
1 2007/02/12 09:40:43
asterix
- *#* Remove randpool_
load function. Add *data in randpool_init prototype
.
+ *#* Revision 1.1
2 2007/02/12 09:47:39
asterix
+ *#* Remove randpool_
save. Add randpool_pool
.
*#*
*#* Revision 1.10 2007/02/12 09:03:32 asterix
*#* Add CONFIG_RANDPOOL_TIMER macro to swich on or off timer support
*#*
*#* Revision 1.10 2007/02/12 09:03:32 asterix
*#* Add CONFIG_RANDPOOL_TIMER macro to swich on or off timer support
@@
-248,8
+248,11
@@
void randpool_getN(EntropyPool *pool, void *data, size_t n_byte)
if(pool->entropy < 0)
pool->entropy = 0;
}
if(pool->entropy < 0)
pool->entropy = 0;
}
-
-bool randpool_save(void *data)
+/**
+ * Return a pointer to entropy pool.
+ */
+uint8_t *randpool_pool(EntropyPool *pool)
{
{
+ return pool->pool_entropy;
}
}