Nice work! You could make this cryptographically secure by using
/proc/sys/kernel/random/uuid as the RNG seed. This brings us one step closer to a TLS implementation in pure Nix; the possibilites are endless!
Thanks for the kind words! Didn’t expect to learn something from posting this
Haha I love it! Especially the way you parse a
hey hex string