Hackertyper is absolutely using real code.
Specifically, it's using groups.c from the Linux kernel:
https://github.com/torvalds/linux/blob/master/kernel/groups....
Compare that to the code used by Hackertyper:
http://hackertyper.com/code.txt