Files
gristlabs_grist-core/app/server/lib
Paul Fitzpatrick 7078922a65 (core) ensure randomness works when sandbox is cloned from a checkpoint
Summary:
This calls a new `initialize` method on the sandbox before we start
doing calculations with it, to make sure that `random.seed()` has
been called. Otherwise, if the sandbox is cloned from a checkpoint,
the seed will have been reset.

The `initialize` method includes the functionality previously done
by `set_doc_url` since it is also initialization/personalization and
this way we avoid introducing another round trip to the sandbox.

Test Plan: tested with grist-core configured to use gvisor

Reviewers: georgegevoian, dsagal

Reviewed By: georgegevoian, dsagal

Subscribers: alexmojaki

Differential Revision: https://phab.getgrist.com/D3549
2022-07-27 14:59:27 -04:00
..
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-07-04 10:42:40 -04:00
2022-05-27 22:19:17 -04:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2021-12-07 17:09:58 +02:00
2022-07-04 10:42:40 -04:00
2022-07-04 10:42:40 -04:00
2022-07-04 10:42:40 -04:00
2022-06-17 21:53:20 +02:00
2022-05-18 08:02:32 -07:00
2022-07-14 12:09:56 +02:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2022-07-04 10:42:40 -04:00
2022-04-01 15:24:19 -07:00
2022-07-04 10:42:40 -04:00
2022-07-04 10:42:40 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-04-01 15:24:19 -07:00
2022-07-04 10:42:40 -04:00
2022-04-27 22:21:55 +02:00
2022-07-04 10:42:40 -04:00
2022-07-04 10:42:40 -04:00