Im experimenting with openssl for homework and I need to generate a 1024 bit file. I know you can use RAND Bytes for this,but im not entirely sure how.

As an example,
int RAND_bytes(unsigned char *buf, int num);


would all i need to do is put in 1024 or would more be needed?