1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Keith Packard
e215261ced picolibc: Use most NEWLIB code with picolibc
In most places, picolibc and newlib are the same, so use
the existing newlib code when compiling with picolibc.

Signed-off-by: Keith Packard <keithp@keithp.com>
2020-08-24 08:26:16 -07:00
Martine Lenders
05b13f5029
Merge pull request #14488 from PeterKietzmann/pr_add_sha256prng
sys/random: add SHA256 mode to SHA1PRNG & tests
2020-07-29 11:20:55 +02:00
PeterKietzmann
5a13d00b65 sys/random: make sha1prng sha256 compatible 2020-07-22 12:25:09 +02:00
Benjamin Valentin
04f3a9798c tests/rng: print when HWRNG is uses as system RNG 2020-07-08 18:27:00 +02:00
c1f93647a9 tests/rng: remove explicit zeroing of xtimer members 2020-04-21 11:26:56 +02:00
Hyungsin
ca1ddeb919 tests/rng: reflecting xtimer's member change 2020-01-10 10:07:56 -08:00
Gaëtan Harter
27b42d34d3
tests/rng: replace printf_float with fmt/print_float
When running the test on `arduino-mega2560` printing the float failed
and was printed as ` ?`.

    Calculated  ? bits of entropy from 10000 samples.

Replace using `printf` floating point printing by using `fmt/print_float`.
Now the test succeeds on `arduino-mega2560`.

As `print_float` does not buffer and is used with `printf` the output
should be flushed before calling it if `fflush` is available.
2019-02-21 10:42:04 +01:00
Gaëtan Harter
44d2b62a70
tests/rng: fix cppcheck error shiftTooManyBitsSigned
cpp check is reporting the following error

    error (shiftTooManyBitsSigned):
    Shifting signed 32-bit value by 31 bits is undefined behaviour

Fix by ensuring the `1` is an `uint32_t` before shifting.
2019-02-21 10:41:33 +01:00
Joakim Nohlgård
21310e4260 tests/rng: Use xtimer for speed test timeout 2018-06-27 13:04:34 +02:00
PeterKietzmann
85643ad01f tests/rng: add tests for random_uint32_range() 2018-06-26 14:08:46 +02:00
PeterKietzmann
3c4360eddb sys/random: add SHA1PRNG 2018-06-22 16:11:53 +02:00
Bas Stottelaar
8fe56a1d73 tests: rng: add fortuna PRNG. 2018-05-29 18:40:59 +02:00
Joakim Nohlgård
2bf1068c72 tests/rng: Clean up includes 2018-02-07 10:24:33 +01:00
Bas Stottelaar
28eaf5db3a tests: rng: add test suite for RNG sources (PRNG, HWRNG) 2017-12-17 17:02:59 +01:00