This source file includes following definitions.
- GetRandomBytes
- GetPPB_Crypto_Dev_0_1_Thunk
#include "base/rand_util.h"
#include "ppapi/c/dev/ppb_crypto_dev.h"
#include "ppapi/thunk/thunk.h"
namespace ppapi {
namespace {
void GetRandomBytes(char* buffer, uint32_t num_bytes) {
base::RandBytes(buffer, num_bytes);
}
const PPB_Crypto_Dev crypto_interface = {&GetRandomBytes};
}
namespace thunk {
PPAPI_THUNK_EXPORT const PPB_Crypto_Dev_0_1* GetPPB_Crypto_Dev_0_1_Thunk() {
return &crypto_interface;
}
}
}