2d4619b13c
Add a test for `sys_hash32()`. The expectation is that hash functions should be approximately uniform over a given field. We can use the Kolmogorov Smirnov test to verify that our hash function is approximately uniform over a given field. Signed-off-by: Chris Friedt <cfriedt@meta.com>
19 lines
390 B
Plaintext
19 lines
390 B
Plaintext
# Copyright (c) 2022 Meta
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config TEST_HASH_FUNC_NUM_BUCKETS
|
|
int "Number of buckets for Hash Function test"
|
|
range 40 2147483648
|
|
default 40
|
|
|
|
config TEST_HASH_FUNC_NUM_ENTRIES
|
|
int "Number of entries for Hash Function test"
|
|
range 400 2147483648
|
|
default 400
|
|
|
|
config TEST_HASH_FUNC_DEBUG
|
|
bool "Print debugging information"
|
|
|
|
source "Kconfig.zephyr"
|