Changeset 9521c08 in rtems-libbsd


Ignore:
Timestamp:
Nov 9, 2017, 1:35:13 PM (20 months ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
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.