diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-24 14:28:59 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-24 14:28:59 -0800 |
| commit | 907a1eb392ca4b29c62b9cc3d2df1ad337695abf (patch) | |
| tree | 27447f4cf82625023a2c4ae5fc385a51d3829685 /src/core/init.c | |
| parent | 4c496d8182b5f3a5db6ca8fd763bab444e39f48a (diff) | |
| download | nng-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.c | 2 |
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); |
