From 339c1ae68d837633447f379814b337a2701b39bc Mon Sep 17 00:00:00 2001 From: Seggan Date: Mon, 20 Nov 2023 20:53:18 -0500 Subject: [PATCH] Actually add `random` --- docs/index.papyri | 5 +++++ .../src/main/kotlin/io/github/seggan/metis/runtime/State.kt | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/index.papyri b/docs/index.papyri index 2d35f9f..e131839 100644 --- a/docs/index.papyri +++ b/docs/index.papyri @@ -42,6 +42,11 @@ This will create a JAR file in `metis-app/build/libs` that can be run with `java @h2 Changelog +@h2 { 0.1.1 } +[ + {Actually added `random` to the standard library} +] + @h2 { 0.1.0 } [ {Initial release} diff --git a/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/State.kt b/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/State.kt index bdc0e80..ee9fb4c 100644 --- a/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/State.kt +++ b/metis-lang/src/main/kotlin/io/github/seggan/metis/runtime/State.kt @@ -156,6 +156,7 @@ class State(parentState: State? = null) { addNativeLibrary(RegexLib) addNativeLibrary(PathLib) addNativeLibrary(MathLib) + addNativeLibrary(RandomLib) loaders.add(ResourceLoader) loaders.add(NativeLoader(nativeLibraries))