zephyr/lib/posix/options/Kconfig.getentropy
Patryk Duda ef258166ba posix: Introduce getentropy() function
The function writes random data to the provided buffer. Maximum
permitted buffer size is 256 bytes. On success the function returns 0,
otherwise it returns -1 and sets errno to appropriate value.

Signed-off-by: Patryk Duda <patrykd@google.com>
2024-04-29 11:46:06 +01:00

14 lines
374 B
Text

# Copyright (c) 2024 Google LLC
#
# SPDX-License-Identifier: Apache-2.0
DT_CHOSEN_ZEPHYR_ENTROPY := zephyr,entropy
config GETENTROPY
bool "Support for getentropy"
depends on !NATIVE_APPLICATION
select NATIVE_LIBC_INCOMPATIBLE
depends on ENTROPY_HAS_DRIVER
depends on $(dt_chosen_enabled,$(DT_CHOSEN_ZEPHYR_ENTROPY))
help
Enable support for getentropy() function.