Skip to content

Commit 4691a58

Browse files
committed
Remove separate Linux implementation
Linux /dev/urandom implementation now folded into main file. Main file can be forced to use own pseudo-RNG by defining RANDLIB_PRNG - used for unit tests, and could maybe also be used on simulator.
1 parent fce09a9 commit 4691a58

File tree

5 files changed

+0
-282
lines changed

5 files changed

+0
-282
lines changed

Makefile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
2-
# Check if we are compiling for Linux using GCC
3-
ifneq (,$(findstring gcc,$(CC)))
4-
TARGET_IS_LINUX := $(shell $(CC) -dM -E - < /dev/null | grep __linux >/dev/null && echo "yes" || echo "no")
5-
endif
6-
7-
ifeq (yes,$(TARGET_IS_LINUX))
8-
SRCS := $(wildcard linux/*)
9-
else
101
SRCS := $(wildcard source/*)
11-
endif
12-
132
LIB := librand.a
143
EXPORT_HEADERS := mbed-client-randlib
154

linux/randLIB.c

Lines changed: 0 additions & 168 deletions
This file was deleted.

test/mbed-client-randlib/unittest/randlib_linux/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/mbed-client-randlib/unittest/randlib_linux/main.cpp

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/mbed-client-randlib/unittest/randlib_linux/randlibtest.cpp

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)