adjust return values for commoncrypto
remove internal calls to add random