summaryrefslogtreecommitdiff
path: root/libtac/lib/magic.h
AgeCommit message (Collapse)Author
2016-12-05Simplify initialization of magic functionPhilip Prindeville
The pseudo-random number function magic() needs to be primed via magic_init() before being invoked. The standard (but klunky) way of handling this is with a static bool inside the function which indicates whether initialization has happened, and if not, handles initialization and then sets the flag. Sometimes it's more desireable to have initialization happen in a known order before program execution starts (this helps with reproducibility). We can do this by indicating to the compiler/ linker that particular functions need to be executed after __start() but before main().
2012-09-16Rearrange header file include for libtacJeroen Nijhof
2011-08-19Major contribution by Darren BeslerJeroen
2010-12-22Initial commitJeroen Nijhof