Commit Graph

25 Commits (4691a58a4cc9d32d967c70d7bf2957d4027e922d)

Author SHA1 Message Date
Kevin Bracey 4691a58a4c 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.
2016-10-18 09:23:32 +01:00
Kevin Bracey fce09a935b Add local pseudo-RNG to randLIB
Rather than using system rand(), provide our own pseudo-RNG.

Generator used is "xoroshiro128+", which has 16 bytes of state and
2^128-1 period.

Main advantage is that we can now seed with up to 128 bits of entropy,
rather than the 32 bits srand() limited us to. We also can be assured of
the quality of the algorithm.

As the core generator is 64-bit, we now provide a get 64-bit function,
and others are based on this.

Incorporate Linux's /dev/urandom use into the main source file.
2016-10-18 09:23:32 +01:00
Kevin Bracey 80f5c491dd Ignore test and linux folders in mbed classic build 2016-05-24 18:12:53 +03:00
Seppo Takalo dbd41baef2 Fix file permissions. 2016-05-24 14:00:32 +03:00
Seppo Takalo 9bb7b055de Implement unittests for Linux 2016-05-24 14:00:20 +03:00
Antti Kauppila 1976b688ed Merge pull request #4 from ARMmbed/randlib_unittests
randlib unit tested
2016-05-20 16:30:04 +03:00
Antti Kauppila 77d8232f90 randlib unit tested 2016-05-20 16:28:35 +03:00
Kevin Bracey 1d1b92b671 Merge pull request #3 from ARMmbed/stdint
Add <stdint.h> include to header
2016-04-07 15:25:57 +01:00
Kevin Bracey 41e5a9bdc6 Add <stdint.h> include to header 2016-04-07 15:22:13 +01:00
Seppo Takalo 8bb0f54ae9 Fix checking if we are compiling for Linux. 2016-04-07 17:05:50 +03:00
Seppo Takalo 49cb83fab3 Merge pull request #2 from ARMmbed/urandom
Use /dev/urandom on Linux.
2016-04-07 12:08:46 +03:00
Seppo Takalo db7abad295 Use /dev/urandom on Linux. 2016-04-06 14:21:02 +03:00
Bogdan Marinescu eb42545448 version v1.1.0 2016-03-23 21:26:20 +02:00
Seppo Takalo 01a5da21b6 version v1.0.0 2015-10-19 13:54:55 +03:00
Bogdan Marinescu 7896d8ff1d version v0.0.5 2015-09-02 16:31:41 +03:00
Bogdan Marinescu 7df4594887 Changed LICENSE.txt to LICENSE 2015-09-02 12:31:47 +03:00
Seppo Takalo 5daf5aa700 version v0.0.4 2015-08-27 10:53:03 +03:00
Release Bot bc8c1b91c5 Update module names for release. 2015-08-12 18:08:12 +01:00
Arto Kinnunen ca17cc2984 version v0.0.3 2015-08-05 10:53:16 +03:00
Juha Heiskanen 230b55cdd3 Merge pull request #1 from ARMmbed/copyright
licence and copyrights updated
2015-08-04 23:33:55 -07:00
Tero Heinonen 32afec7f59 licence and copyrights updated 2015-08-03 13:53:57 +03:00
Seppo Takalo f80e9e349f Update homepage 2015-07-13 18:00:07 +03:00
Seppo Takalo 8b1d6a884b version v0.0.2 2015-07-13 17:53:16 +03:00
Seppo Takalo 00b21c0968 Update build rules for NS based build. 2015-07-13 17:43:16 +03:00
Seppo Takalo bb97e63b78 Move randlib away from libservice. 2015-07-13 15:51:05 +03:00