X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcached%2Fhash.cc;h=5e8eb2b6eafbb43627eed828ca47282fb98595d6;hb=f5899224fbd4475ac3c5c499b1681da304e0d011;hp=cb1ca4641e1a85b93cd23ddfe39b31d8ecae8b34;hpb=6b7d2bf0319e0bd48bd6aa4ad8c56a935f98b0d2;p=awesomized%2Flibmemcached diff --git a/src/libmemcached/hash.cc b/src/libmemcached/hash.cc index cb1ca464..5e8eb2b6 100644 --- a/src/libmemcached/hash.cc +++ b/src/libmemcached/hash.cc @@ -1,6 +1,6 @@ /* +--------------------------------------------------------------------+ - | libmemcached - C/C++ Client Library for memcached | + | libmemcached-awesome - C/C++ Client Library for memcached | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modification, are permitted under the terms of the BSD license. | @@ -9,18 +9,14 @@ | the terms online at: https://opensource.org/licenses/BSD-3-Clause | +--------------------------------------------------------------------+ | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ | - | Copyright (c) 2020 Michael Wallner | + | Copyright (c) 2020-2021 Michael Wallner https://awesome.co/ | +--------------------------------------------------------------------+ */ #include "libmemcached/common.h" - -#if HAVE_SYS_TIME_H -# include -#endif -#include - #include "libmemcached/virtual_bucket.h" +#include "p9y/gettimeofday.hpp" +#include "p9y/random.hpp" uint32_t memcached_generate_hash_value(const char *key, size_t key_length, memcached_hash_t hash_algorithm) {