Matt Suiche 0c9e8df91c Add 'Security Research and Development with LLVM - Andrew Reiter/' from commit '0605b5174c2bc286d3e95d6c0df620800bef96c7'
git-subtree-dir: Security Research and Development with LLVM - Andrew Reiter
git-subtree-mainline: aa7a9fc1e16c3c5be7ba312c4b4e37775e005101
git-subtree-split: 0605b5174c2bc286d3e95d6c0df620800bef96c7
2017-04-29 17:11:06 +04:00

27 строки
272 B
C

/*
* NCA001
*
* NaiveConstantArg 001
*
*/
#include <stdio.h>
#include <stdlib.h>
void
seed_random()
{
srandom(0xdeadbeef);
}
int
main(int argc, char **argv)
{
long int rv;
seed_random();
rv = random();
(void)printf("random value = %ld\n", rv);
return 0;
}