Skip to content
Snippets Groups Projects
Commit 565d3ca7 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

sys: shell: renamed mersenne_* to random_*

parent 9c93e72d
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ifneq (,$(filter lpc2387,$(USEMODULE))) ...@@ -21,7 +21,7 @@ ifneq (,$(filter lpc2387,$(USEMODULE)))
SRC += sc_heap.c SRC += sc_heap.c
endif endif
ifneq (,$(filter random,$(USEMODULE))) ifneq (,$(filter random,$(USEMODULE)))
SRC += sc_mersenne.c SRC += sc_random.c
endif endif
ifeq ($(CPU),x86) ifeq ($(CPU),x86)
SRC += sc_x86_lspci.c SRC += sc_x86_lspci.c
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* @{ * @{
* *
* @file * @file
* @brief Shell commands for mersenne twister * @brief Shell commands for random generators
* *
* @author Christian Mehlis <mehlis@inf.fu-berlin.de> * @author Christian Mehlis <mehlis@inf.fu-berlin.de>
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "random.h" #include "random.h"
int _mersenne_init(int argc, char **argv) int _random_init(int argc, char **argv)
{ {
int initval; int initval;
...@@ -53,7 +53,7 @@ int _mersenne_init(int argc, char **argv) ...@@ -53,7 +53,7 @@ int _mersenne_init(int argc, char **argv)
return 0; return 0;
} }
int _mersenne_get(int argc, char **argv) int _random_get(int argc, char **argv)
{ {
(void) argc; (void) argc;
(void) argv; (void) argv;
......
...@@ -96,8 +96,8 @@ extern int _icmpv6_ping(int argc, char **argv); ...@@ -96,8 +96,8 @@ extern int _icmpv6_ping(int argc, char **argv);
#endif #endif
#ifdef MODULE_RANDOM #ifdef MODULE_RANDOM
extern int _mersenne_init(int argc, char **argv); extern int _random_init(int argc, char **argv);
extern int _mersenne_get(int argc, char **argv); extern int _random_get(int argc, char **argv);
#endif #endif
#ifdef MODULE_GNRC_NETIF #ifdef MODULE_GNRC_NETIF
...@@ -187,8 +187,8 @@ const shell_command_t _shell_command_list[] = { ...@@ -187,8 +187,8 @@ const shell_command_t _shell_command_list[] = {
#endif #endif
#endif #endif
#ifdef MODULE_RANDOM #ifdef MODULE_RANDOM
{ "mersenne_init", "initializes the PRNG", _mersenne_init }, { "random_init", "initializes the PRNG", _random_init },
{ "mersenne_get", "returns 32 bit of pseudo randomness", _mersenne_get }, { "random_get", "returns 32 bit of pseudo randomness", _random_get },
#endif #endif
#if FEATURE_PERIPH_RTC #if FEATURE_PERIPH_RTC
{"rtc", "control RTC peripheral interface", _rtc_handler}, {"rtc", "control RTC peripheral interface", _rtc_handler},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment