mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-05-19 05:33:46 +03:00
Fix failing multi-threaded unit test
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
a16ee6b7d4
commit
178bf3ee8a
@ -97,7 +97,7 @@ void *thread_random_function( void* ctx )
|
|||||||
memset(out, 0, sizeof(out));
|
memset(out, 0, sizeof(out));
|
||||||
|
|
||||||
for(int i = 0; i < thread_random_reps; i++) {
|
for(int i = 0; i < thread_random_reps; i++) {
|
||||||
TEST_EQUAL(mbedtls_ctr_drbg_random_with_add((mbedtls_ctr_drbg_context*) ctx, out, sizeof(out), NULL, 0), 0);
|
TEST_EQUAL(mbedtls_ctr_drbg_random((mbedtls_ctr_drbg_context*) ctx, out, sizeof(out)), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user