Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122208670
random_generator.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 16, 16:12
Size
302 B
Mime Type
text/x-c
Expires
Fri, Jul 18, 16:12 (2 d)
Engine
blob
Format
Raw Data
Handle
27450411
Attached To
R10499 Energy Analysis of Lightweight AEAD Circuit
random_generator.c
View Options
#include<stdio.h>
#include<stdlib.h>
int main() {
FILE *in = fopen("randomness_source", "w");
srand(0); // seed randomness source
int i,j;
for(j=0; j<100000; j++) { // the more the merrier
for(i =0; i<16; i++) printf("%02X", (unsigned char) rand());
printf("\n"); }
}
Event Timeline
Log In to Comment