summaryrefslogtreecommitdiff
path: root/node/Utils.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-06 18:04:53 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-06 18:04:53 -0700
commit64aaea3978533a6643850f6ed05a9afe7f4dc7be (patch)
tree25b8997eb2ffb2c8a0016df6f53558fa5e65f890 /node/Utils.cpp
parent477feee8a3fbc84d00c2939b5fc8a9bbf19af2ca (diff)
downloadinfinitytier-64aaea3978533a6643850f6ed05a9afe7f4dc7be.tar.gz
infinitytier-64aaea3978533a6643850f6ed05a9afe7f4dc7be.zip
Cleanup, and add an even faster Poly1305 on systems that support it.
Diffstat (limited to 'node/Utils.cpp')
-rw-r--r--node/Utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp
index 658c397d..3c6dee32 100644
--- a/node/Utils.cpp
+++ b/node/Utils.cpp
@@ -191,7 +191,7 @@ void Utils::getSecureRandom(void *buf,unsigned int bytes)
if (devURandomFd <= 0) {
devURandomFd = ::open("/dev/urandom",O_RDONLY);
if (devURandomFd <= 0) {
- fprintf(stderr,"FATAL ERROR: Utils::getSecureRandom() unable to open /dev/urandom\r\n");
+ fprintf(stderr,"FATAL ERROR: Utils::getSecureRandom() unable to open /dev/urandom\n");
exit(1);
return;
}
@@ -200,7 +200,7 @@ void Utils::getSecureRandom(void *buf,unsigned int bytes)
for(unsigned int i=0;i<bytes;++i) {
if (randomPtr >= sizeof(randomBuf)) {
if ((int)::read(devURandomFd,randomBuf,sizeof(randomBuf)) != (int)sizeof(randomBuf)) {
- fprintf(stderr,"FATAL ERROR: Utils::getSecureRandom() unable to read from /dev/urandom\r\n");
+ fprintf(stderr,"FATAL ERROR: Utils::getSecureRandom() unable to read from /dev/urandom\n");
exit(1);
return;
}