From 3d9a16558679ca48ef5616c3518a3c6fd72a0220 Mon Sep 17 00:00:00 2001 From: EmelyanenkoK Date: Mon, 24 Oct 2022 20:23:05 +0300 Subject: [PATCH] Fix set_seed in stdlib.fc --- crypto/smartcont/stdlib.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/smartcont/stdlib.fc b/crypto/smartcont/stdlib.fc index c1dc5ad9..3531608a 100644 --- a/crypto/smartcont/stdlib.fc +++ b/crypto/smartcont/stdlib.fc @@ -611,7 +611,7 @@ int rand(int range) impure asm "RAND"; ;;; Returns the current random seed as an unsigned 256-bit Integer. int get_seed() impure asm "RANDSEED"; ;;; Sets the random seed to unsigned 256-bit seed. -int set_seed() impure asm "SETRAND"; +() set_seed(int) impure asm "SETRAND"; ;;; Mixes unsigned 256-bit integer x into the random seed r by setting the random seed to sha256 of the concatenation of two 32-byte strings: the first with the big-endian representation of the old seed r, and the second with the big-endian representation of x. () randomize(int x) impure asm "ADDRAND"; ;;; Equivalent to randomize(cur_lt());.