ObjFW  Diff

Differences From Artifact [920a5b1adb]:

  • File src/OFObject.m — part of check-in [50e4ae0716] at 2015-08-26 08:50:09 on branch trunk — Make sure of_hash_seed is never initialized to 0

    of_hash_seed == 0 is special, as it means to OFMapTable to behave
    deterministically (which is required for the tests, for example) and not
    do any random per-hashtable rotating on the hash. The random rotation
    improves resistance against hash collision DoS attacks, so if the random
    seed happens to be 0, it would disable that rotation unintentionally,
    thus it's better to get a new random seed if it is 0. (user: js, size: 24525) [annotate] [blame] [check-ins using] [more...]

To Artifact [c0b3318fe8]:


1
2
3
4
5
6
7
8
9
10
/*
 * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of ObjFW. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
 * the packaging of this file.
 *

|
|







1
2
3
4
5
6
7
8
9
10
/*
 * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
 *   Jonathan Schleifer <js@heap.zone>
 *
 * All rights reserved.
 *
 * This file is part of ObjFW. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
 * the packaging of this file.
 *