[os_crypto] fix random value
[os_crypto] fix windows build
Merge pull request #302 from cgzones/fix_pr285

[os_crypto] fix random value