use /dev/urandom, use a struct to represent api key records