Change rand to std::mersenne_twister_engine
Replace all rand by openssl & remove std::mersenne_twister (Not made for crypto)
Remove include and fix unstable code