diff options
author | Jack Lloyd <[email protected]> | 2018-08-10 10:53:05 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-10 10:53:05 -0400 |
commit | 2eee96640f4629aa9c6c517b1703e7dcd8a4dbd5 (patch) | |
tree | 82c62e857dea098b27124dfe8d37e6d79c8ae795 /src/tests/test_ffi.cpp | |
parent | d664c9669a0f3d5f09e3bf89b222abb7483d426e (diff) |
Add a "user-threadsafe" option to botan_rng_init
Diffstat (limited to 'src/tests/test_ffi.cpp')
-rw-r--r-- | src/tests/test_ffi.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp index ec8db1739..a479c6a48 100644 --- a/src/tests/test_ffi.cpp +++ b/src/tests/test_ffi.cpp @@ -52,6 +52,13 @@ class FFI_Unit_Tests final : public Test TEST_FFI_OK(botan_rng_destroy, (rng)); } + if(TEST_FFI_OK(botan_rng_init, (&rng, "user-threadsafe"))) + { + TEST_FFI_OK(botan_rng_get, (rng, outbuf.data(), outbuf.size())); + TEST_FFI_OK(botan_rng_reseed, (rng, 256)); + TEST_FFI_OK(botan_rng_destroy, (rng)); + } + if(TEST_FFI_OK(botan_rng_init, (&rng, "user"))) { TEST_FFI_OK(botan_rng_get, (rng, outbuf.data(), outbuf.size())); |