mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-02 15:18:54 +08:00
Remove dangerous weak definition of getentropy()
All BSP supporting libbsd should provide this function.
This commit is contained in:
parent
2f9d60c613
commit
0a8c0ce47f
@ -115,18 +115,6 @@ volatile uint32_t _Watchdog_Ticks_since_boot;
|
|||||||
extern volatile int32_t _bsd_ticks
|
extern volatile int32_t _bsd_ticks
|
||||||
__attribute__ ((__alias__("_Watchdog_Ticks_since_boot")));
|
__attribute__ ((__alias__("_Watchdog_Ticks_since_boot")));
|
||||||
|
|
||||||
__attribute__((__weak__)) void _arc4random_getentropy_fail(void)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__((__weak__)) int getentropy(void *buf, size_t n)
|
|
||||||
{
|
|
||||||
|
|
||||||
memset(buf, 0, n);
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
rtems_status_code
|
rtems_status_code
|
||||||
rtems_bsd_initialize(void)
|
rtems_bsd_initialize(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user