5 Likes
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!
3 Likes
Thanks for the kind words! Didn’t expect to learn something from posting this
https://github.com/figsoda/rand-nix/commit/c62e952d4f143169276f23d22cd8cb823552994a
1 Like
Haha I love it! Especially the way you parse a hey hex string
4 Likes