Create a 128 byte random number
问题 If the rand() function creates a random number that is 4 bytes in length, and I wanted to create a random number that is 1024 bits in length (128 bytes), is the easiest method to get this by concatenating the rand() function 256 times or is there an alternative method? #include <stdio.h> #include <string.h> int main(void) { const char data[128]; memset(&data, 0x36, 128); printf("%s\n", data); puts(""); printf("%d\n", sizeof(data)/sizeof(data[0])); puts(""); int i = 0; unsigned long rez = 0;