added a simple random masterkey generator