From 907a1eb392ca4b29c62b9cc3d2df1ad337695abf Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 24 Jan 2017 14:28:59 -0800 Subject: Add nni_ep_hold, nni_ep_hold_close, nni_ep_rele, nng_endpoint_close. --- src/core/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/init.c') 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); -- cgit v1.2.3-70-g09d2