On Sat, Dec 14, 2013 at 01:20:31AM +0000, Alin Serdean wrote:
> This patch is to add for secure pseudorandom number generator on windows.
>
> Signed-off-by: Alin Serdean <aserdean at cloudbasesolutions.com>
I'm pretty sure that GetLastError() doesn't return an errno value, but
this code tries to pass it to ovs_retval_to_string() and return it to a
caller expecting an errno. Can you do better than that? Thanks.
> + if (!CryptGenRandom(crypt_prov, n, buffer)) {
> + error = GetLastError();
> + VLOG_ERR("CryptGenRandom: read error (%s)",
> ovs_retval_to_string(error));
> + }
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev