[os_crypto] fix random value

see #285