Eval-time random number generator for Nix without IFD

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 :ok_hand:

4 Likes