summaryrefslogtreecommitdiffstats
path: root/src/tests/entropy_sample.c
diff options
context:
space:
mode:
authorMichael Brown2012-03-18 17:45:04 +0100
committerMichael Brown2012-03-18 18:05:37 +0100
commit196f0bb081db462bc0f9a9462f47c9639101204b (patch)
tree05e772f3202b4c0f326491c90af0cb5dbf7eb147 /src/tests/entropy_sample.c
parent[crypto] Remove obsolete AXTLS RSA algorithm (diff)
downloadipxe-196f0bb081db462bc0f9a9462f47c9639101204b.tar.gz
ipxe-196f0bb081db462bc0f9a9462f47c9639101204b.tar.xz
ipxe-196f0bb081db462bc0f9a9462f47c9639101204b.zip
[rng] Allow entropy_enable() to return an error
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/entropy_sample.c')
-rw-r--r--src/tests/entropy_sample.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/entropy_sample.c b/src/tests/entropy_sample.c
index e00bb484..9e75b4e9 100644
--- a/src/tests/entropy_sample.c
+++ b/src/tests/entropy_sample.c
@@ -48,7 +48,8 @@ static void entropy_sample_test_exec ( void ) {
for ( i = 0 ; i < ( SAMPLE_COUNT / SAMPLE_BLOCKSIZE ) ; i++ ) {
/* Collect one block of samples */
- entropy_enable();
+ rc = entropy_enable();
+ ok ( rc == 0 );
for ( j = 0 ; j < SAMPLE_BLOCKSIZE ; j++ ) {
rc = get_noise ( &samples[j] );
ok ( rc == 0 );