summaryrefslogtreecommitdiffhomepage
path: root/Usr/Sys/CoreSystem/Sources/Math.c
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:59:14 +0200
committerAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:59:14 +0200
commit3cded2a8deaaa8e6907ed1b47d174eb267aab7aa (patch)
treec62fd9f4a8ffe55a9c4066f76bed841872155d1b /Usr/Sys/CoreSystem/Sources/Math.c
parent9679f4d8676cb72feb80d95bca6ce26965f40042 (diff)
MHR-23: Refactor and finishing SMP support.
Diffstat (limited to 'Usr/Sys/CoreSystem/Sources/Math.c')
-rw-r--r--Usr/Sys/CoreSystem/Sources/Math.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Usr/Sys/CoreSystem/Sources/Math.c b/Usr/Sys/CoreSystem/Sources/Math.c
new file mode 100644
index 00000000..19df42f3
--- /dev/null
+++ b/Usr/Sys/CoreSystem/Sources/Math.c
@@ -0,0 +1,14 @@
+/* -------------------------------------------
+
+ Copyright SoftwareLabs
+
+------------------------------------------- */
+
+#include <Headers/Math.h>
+
+/// @brief Number generator helper.
+/// @return Random generated number.
+CS_EXTERN_C SizeType MathRand(VoidType)
+{
+ return kSharedApplication->Invoke(kSharedApplication, kCallRandomNumberGenerator);
+} \ No newline at end of file