mirror of
https://github.com/jon4hz/random.c.git
synced 2026-11-30 03:51:46 +01:00
main
random.c
A terrible way to get a random uint8_t, written in C (ish).
usage
$ ./random ; echo $? # return code -> random number
example
$ ./random ; echo $?
4
$ ./random ; echo $?
56
$ ./random ; echo $?
155
$ ./random ; echo $?
230
why use this
- it's random because of undefined behaviour (undefined -> random, trust)
- it's more secure than xkcd 221 based rngs
- it's funny
Languages
C
57.2%
Linker Script
21.6%
Makefile
21.2%