selinux/policycoreutils
Christian Göttsche 3089f1f2fd newrole: use DJB2a string hash function
The hash table implementation uses `& (h->size - 1)` to truncate
generated hashes to the number of buckets.  This operation is equal to
`% h->size` if and only if the size is a power of two (which seems to be
always the case).  One property of the binary and with a power of two
(and probably a small one <=2048) is all higher bits are discarded.
Thus a hash function is needed with a good avalanche effect, which the
current one is not.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
2023-11-21 08:55:43 -05:00
..
.tx
hll Fix many misspellings 2019-09-18 22:47:35 +02:00
load_policy Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
man Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
newrole newrole: use DJB2a string hash function 2023-11-21 08:55:43 -05:00
po Update translations 2023-11-07 16:27:38 -05:00
run_init Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
scripts Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
secon Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
semodule Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
sestatus Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
setfiles setfiles: do not issue AUDIT_FS_RELABEL on dry run 2023-10-11 14:58:54 -04:00
setsebool Do not automatically install Russian translations 2023-08-16 13:33:47 -04:00
.gitignore
LICENSE docs: provide a top level LICENSE file 2022-10-05 08:20:38 -04:00
Makefile
VERSION Update VERSIONs to 3.6-rc1 for release. 2023-11-08 12:51:35 +01:00