aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-15 22:56:53 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-15 22:56:53 +0200
commitad08545f8f3bc8590baebef8936286169241d101 (patch)
treed7adb4c7220e29e9e13597cb5fd8ec6df6de1d33
parentaa6225496bc37d2ba10fd72e08ff827ab00312b6 (diff)
downloadxK-ad08545f8f3bc8590baebef8936286169241d101.tar.gz
xK-ad08545f8f3bc8590baebef8936286169241d101.tar.xz
xK-ad08545f8f3bc8590baebef8936286169241d101.zip
Bump liberty
-rw-r--r--degesch.c2
-rw-r--r--kike.c3
m---------liberty0
3 files changed, 4 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index 78a5f66..6bceb2e 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2392,7 +2392,7 @@ static void
formatter_parse_nick (struct formatter *self, char *s)
{
char *nick = irc_cut_nickname (s);
- int color = str_map_hash (nick, strlen (nick)) % 8;
+ int color = siphash_wrapper (nick, strlen (nick)) % 8;
// We always use the default color for ourselves
if (self->s && irc_is_this_us (self->s, nick))
diff --git a/kike.c b/kike.c
index f24dbf2..738365e 100644
--- a/kike.c
+++ b/kike.c
@@ -3951,6 +3951,9 @@ daemonize (struct server_context *ctx)
int
main (int argc, char *argv[])
{
+ // Need to call this first as all string maps depend on it
+ siphash_wrapper_randomize ();
+
static const struct opt opts[] =
{
{ 'd', "debug", NULL, 0, "run in debug mode (do not daemonize)" },
diff --git a/liberty b/liberty
-Subproject 0058c1f457a954fbdfc63f458fa00c3c5a700f6
+Subproject 02708608a97d021576fd08b39c400a27a590c99