aboutsummaryrefslogtreecommitdiff
path: root/src/cc20rng/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cc20rng/test.c')
-rw-r--r--src/cc20rng/test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cc20rng/test.c b/src/cc20rng/test.c
new file mode 100644
index 0000000..e2bdae0
--- /dev/null
+++ b/src/cc20rng/test.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+#include "cc20_prng.h"
+
+int main()
+{
+ uint32_t i;
+ i = chacha20_prng_self_test();
+ printf("test result: %i (%s)\n", i, (i == 0)?"FAIL":"SUCCESS");
+}