-2^63 is a value reserved for min/max token boundaries and shouldn't be used for regular tokens. This patch fixes get_random_token to never create token with value -2^63. On the way dht::get_random_number template method is removed because it was exclusively used by get_random_token. Also use uniform_int_distribution with int64_t instead of uint64_t by using correct constructor parameter that guarantees values between -2^63+1 and 2^63-1 inclusively. Tests: unit(dev) Fixes #6237. Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com> Message-Id: <0a1a939355f5005039d5c2c7c513bad94cf60be2.1587302093.git.piotr@scylladb.com>