Changeset 9521c08 in rtems-libbsd


Ignore:
Timestamp:
Nov 9, 2017, 1:35:13 PM (19 months ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
5cb01f277962d3127d364bf871f799b34e6b6be6, 9a4ed64d5acc20cd3488a633bd78cad7d1708081
Children:
4525674
Parents:
bc4bb2e
git-author:
Christian Mauderer <Christian.Mauderer@…> (11/09/17 13:35:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/10/17 13:13:19)
Message:

wpa_supplicant: Use arc4random instead of getentropy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/contrib/wpa/src/utils/os_unix.c

    rbc4bb2e r9521c08  
    2727
    2828#ifdef __rtems__
    29 #include <unistd.h>
     29#include <stdlib.h>
    3030#endif /* __rtems__ */
    3131
     
    289289
    290290#ifdef __rtems__
    291         return getentropy(buf, len);
     291        arc4random_buf(buf, len);
     292        return 0;
    292293#else /* __rtems__ */
    293294        f = fopen("/dev/urandom", "rb");
Note: See TracChangeset for help on using the changeset viewer.