Add API for generating random bytes and single random values
* src/randomresults.h: New. * src/CMakeLists.txt: Add new file. * src/context.h (class Context): Add enum RandomMode. * src/context.h, src/context.cpp (class Context): Add member functions generateRandomBytes and generateRandomValue. * tests/run-genrandom.cpp: New. * tests/CMakeLists.txt: Add new file.
This adds C++ API for the new gpgme functions gpgme_op_random_bytes
and gpgme_op_random_value.
- GnuPG-bug-id: T6694