#include <stdint.h>

#include "CryptoPlatform.h"
#include "rand/rand.h"

int RAND_bytes(unsigned char *buf, int bytes)
{
	if (getRandBlock(buf, (uint32_t)bytes) != NO_ERROR) {
		return 0;
	} else {
		return 1;
	}
}

int RAND_pseudo_bytes(unsigned char *buf, int bytes)
{
	if (getRandBlock(buf, (uint32_t)bytes) != NO_ERROR) {
		return 0;
	} else {
		return 1;
	}
}
