mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix set_seed in stdlib.fc
This commit is contained in:
parent
64b960740a
commit
3d9a165586
1 changed files with 1 additions and 1 deletions
|
@ -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());.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue