I stumbled across this interesting code on Reddit for generating Ethereum private keys with terminal:
cat /dev/urandom |LC_ALL=C tr -dc '0-9a-f' | fold -w 64 | head -n 1
Of course the randomness and everything would be sufficient but is it possible that this could generate an invalid key? Are all keys generating in this manner valid or does Ethereum have some weird exception rules?