Benjamin Valentin
9d836888c2
treewide: fix file permissions
...
C files should not be executable.
2020-07-08 17:32:36 +02:00
PeterKietzmann
eb62ac6ff1
sys/random/sha1prng: make random_init use init_by_array
2020-05-11 10:38:44 +02:00
PeterKietzmann
54d6b0d096
sys/random/sha1prng: remove redundant sha1 update in state transistion
2020-05-11 10:37:24 +02:00
PeterKietzmann
3f626e39ab
sys/random/sha1prng: rename seed size to state size
2020-05-11 10:35:58 +02:00
PeterKietzmann
9c5759112e
sys/random/minstd: remove vague description
2020-05-01 17:30:36 +02:00
PeterKietzmann
090efc10de
sys/random/minstd: fix signedness
2020-05-01 17:30:36 +02:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Francisco Molina
cc2c3a0163
pkg/ucglib/src/csrc/ucg_riotos.c: fix cpp.check shiftTooManyBitsSigned
2019-11-21 11:58:07 +01:00
0ec9c57b2b
add copyrights from IOTPUSH project
2019-05-02 12:09:37 +02:00
637bbdd985
sys/random: add missing includes
2019-04-01 17:05:44 +02:00
Hauke Petersen
368ab65d8a
sys/random: cleanup includes
2019-03-07 10:22:10 +01:00
Hauke Petersen
64489e8b44
sys/random: add hwrng as seed source (if available)
2019-02-19 18:09:40 +01:00
Hauke Petersen
8a135d3a43
sys/random: add guard for periph/cpuid include
2019-02-19 18:09:40 +01:00
Hauke Petersen
e070d5a694
sys/random: fix indention in doxygen header
2019-02-19 18:09:40 +01:00
05b6af466c
sys: add missig <string.h> includes
2018-09-20 23:47:40 +02:00
PeterKietzmann
20397c5b15
cortexm_common: add SRAM based PRNG seeder
2018-07-04 17:55:16 +02:00
PeterKietzmann
ec5fb4fbda
sys/random: fix distribution of random_uint32_range()
2018-06-26 14:08:43 +02:00
PeterKietzmann
3c4360eddb
sys/random: add SHA1PRNG
2018-06-22 16:11:53 +02:00
Bas Stottelaar
99755eaa0c
sys: random: add fortuna PRNG
2018-05-29 18:40:58 +02:00
PeterKietzmann
8172e5782d
sys/random: remove printf in xorshift
2018-04-05 12:06:12 +02:00
Francisco Acosta
f80c1b0e9a
sys/random/tinymt32: remove unused static function
2018-03-16 16:24:05 +01:00
caabc15395
sys/random: provide generic random_bytes()
2018-03-14 18:17:27 +01:00
Joakim Nohlgård
2cc07f7f05
Merge pull request #7390 from tobhe/random
...
random: add random_bytes() function
2018-02-09 10:33:46 +01:00
tobhe
7af07bacff
random: added random_bytes function
2017-12-19 09:39:55 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
Martine Lenders
c52fde668b
sys: random: make fallback seed configurable at compile time
2017-11-08 17:18:26 +01:00
ccf704bab8
sys: random: use luid to generate random seed
2017-11-08 17:18:26 +01:00
Peter Kietzmann
9964a60759
Merge pull request #7545 from kaspar030/add_prng_xorshift
...
sys: random: add xorshift prng
2017-10-10 19:13:49 +02:00
d377a17784
sys: random: add xorshift prng
2017-10-10 18:59:58 +02:00
035d266d49
makefile: indentation cleanup
2017-09-22 12:00:47 +02:00
88433cba2f
sys: random: make use of submodules in Makefile
2017-08-30 23:49:30 +02:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
Simon Brummer
5e20cd9b67
Added random_init_by_array to tinymt32 wrapper
2016-05-31 20:12:24 +02:00
ded39b461e
sys: random: rename genrand_* to random_*
2016-02-29 21:33:17 +01:00
d9cf871e2e
sys: random: import tinymt32 PRNG
2016-02-29 12:05:31 +01:00
9c93e72d81
sys: random: add simple LCG PRNGs
2015-11-24 06:52:39 +01:00
René Kijewski
840c0f0a57
make: detect their module name automatically
...
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.
This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
René Kijewski
e55fd19d5c
Fix the makefile of sys/random
...
The Makefile must not overwrite the include paths.
2014-02-20 17:16:57 +01:00
Ludwig Ortmann
2525920426
remove trailing whitespace and newlines
2014-02-11 18:45:06 +01:00
Christian Mehlis
0dc5437e31
fixes for PRNG
2013-08-26 22:18:02 +02:00
René Kijewski
49876c15f7
Update on @mehlis' Mersene twister code
...
* Consistent naming
* C99 style variable definition
* Code de-duplication through mathematical conversions
* Less magic numbers (higher powers of twoof two))
2013-08-26 22:18:02 +02:00
Christian Mehlis
5ccde8340d
add mersenne twister
2013-08-26 22:17:46 +02:00