aboutsummaryrefslogtreecommitdiff
path: root/src/core/init.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-24 14:28:59 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-24 14:28:59 -0800
commit907a1eb392ca4b29c62b9cc3d2df1ad337695abf (patch)
tree27447f4cf82625023a2c4ae5fc385a51d3829685 /src/core/init.c
parent4c496d8182b5f3a5db6ca8fd763bab444e39f48a (diff)
downloadnng-907a1eb392ca4b29c62b9cc3d2df1ad337695abf.tar.gz
nng-907a1eb392ca4b29c62b9cc3d2df1ad337695abf.tar.bz2
nng-907a1eb392ca4b29c62b9cc3d2df1ad337695abf.zip
Add nni_ep_hold, nni_ep_hold_close, nni_ep_rele, nng_endpoint_close.
Diffstat (limited to 'src/core/init.c')
-rw-r--r--src/core/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/init.c b/src/core/init.c
index 8ada0247..66ad9725 100644
--- a/src/core/init.c
+++ b/src/core/init.c
@@ -40,7 +40,7 @@ nni_init_helper(void)
return (rv);
}
nni_idhash_set_limits(&nni_pipes_x, 1, 0x7fffffff,
- nni_random() & 0x7fffffff);
+ (nni_random() & 0x7ffffffe) + 1);
nni_idhash_set_limits(&nni_sockets_x, 1, 0x7fffffff, 1);
nni_idhash_set_limits(&nni_endpoints_x, 1, 0xffffffff, 1);