add options for keylength, randfile