From b639e4d3643b8245b77bc8707a3a864221fad195 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 13 Jan 2017 00:00:47 -0800 Subject: Many fixes for Windows. It compiles, and some tests work. Windows is getting there. Needs a couple of more more hours to enable everything, especially IPC, and most of the work at this point is probably some combination of debug and tweaking things like error handling. --- src/platform/windows/win_rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/platform/windows/win_rand.c') diff --git a/src/platform/windows/win_rand.c b/src/platform/windows/win_rand.c index 5ca80782..1cabb6a0 100644 --- a/src/platform/windows/win_rand.c +++ b/src/platform/windows/win_rand.c @@ -22,7 +22,7 @@ nni_plat_seed_prng(void *buf, size_t bufsz) // for use with crypto keying.) while (bufsz > sizeof (val)) { rand_s(&val); - memcmp(buf, &val); + memcpy(buf, &val, sizeof (val)); buf = (((char *)buf) + sizeof (val)); bufsz -= sizeof (val); } -- cgit v1.2.3-70-g09d2