mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-01 03:12:29 +00:00
18 lines
394 B
C++
18 lines
394 B
C++
#include <qpdf/CryptoRandomDataProvider.hh>
|
|
|
|
#include <qpdf/QPDFCryptoProvider.hh>
|
|
|
|
void
|
|
CryptoRandomDataProvider::provideRandomData(unsigned char* data, size_t len)
|
|
{
|
|
auto crypto = QPDFCryptoProvider::getImpl();
|
|
crypto->provideRandomData(data, len);
|
|
}
|
|
|
|
RandomDataProvider*
|
|
CryptoRandomDataProvider::getInstance()
|
|
{
|
|
static CryptoRandomDataProvider instance;
|
|
return &instance;
|
|
}
|