The way to determine IV for AES encryption, possible security problems with this approach

I am trying to make a folder encryption with maximum automation (except password input).
Inside a bash script I do the following:

echo $RANDOM | md5sum | cut -d’ ‘ -f1 > iv

and then using it:

openssl aes-128-cbc -m… Continue reading The way to determine IV for AES encryption, possible security problems with this approach