From 502ea66f151b0bef05c5a4183e955c2d358a837a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 8 Aug 2014 11:53:55 -0700 Subject: Kill ugly old getSecureRandom() and replace with simple wrapper for Windows CAPI and *nix /dev/urandom, and some build fixes. --- node/Dictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/Dictionary.cpp') diff --git a/node/Dictionary.cpp b/node/Dictionary.cpp index 835cc0c9..e050143b 100644 --- a/node/Dictionary.cpp +++ b/node/Dictionary.cpp @@ -110,7 +110,7 @@ bool Dictionary::verify(const Identity &id) const if (sig == end()) return false; std::string sigbin(Utils::unhex(sig->second)); - return id.verify(buf.data(),buf.length(),sigbin.data(),sigbin.length()); + return id.verify(buf.data(),(unsigned int)buf.length(),sigbin.data(),sigbin.length()); } catch ( ... ) { return false; } -- cgit v1.2.3