use openssl pseudo random function