aboutsummaryrefslogtreecommitdiff
path: root/core/math/big/helpers.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-09-05 10:40:35 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-09-05 10:40:35 +0200
commit1f5ce91ae21c975655a68d70714ab62434b914f6 (patch)
tree1a3e50fdbb02f1bf9149459a6bac6f2fd1b13569 /core/math/big/helpers.odin
parentd7627744dabd352aa09fc49c79a9466beec558ab (diff)
big: Add `internal_random_prime`.
Diffstat (limited to 'core/math/big/helpers.odin')
-rw-r--r--core/math/big/helpers.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/big/helpers.odin b/core/math/big/helpers.odin
index ff654172c..ccd00615f 100644
--- a/core/math/big/helpers.odin
+++ b/core/math/big/helpers.odin
@@ -362,15 +362,15 @@ int_random_digit :: proc(r: ^rnd.Rand = nil) -> (res: DIGIT) {
return 0; // We shouldn't get here.
}
-int_rand :: proc(dest: ^Int, bits: int, r: ^rnd.Rand = nil, allocator := context.allocator) -> (err: Error) {
+int_random :: proc(dest: ^Int, bits: int, r: ^rnd.Rand = nil, allocator := context.allocator) -> (err: Error) {
/*
Check that `a` is usable.
*/
assert_if_nil(dest);
- return #force_inline internal_int_rand(dest, bits, r, allocator);
+ return #force_inline internal_int_random(dest, bits, r, allocator);
}
-rand :: proc { int_rand, };
+random :: proc { int_random, };
/*
Internal helpers.