Files
gristlabs_grist-core/sandbox/grist
Alex Hall 31f54065f5 (core) Use standard library uuid.uuidv4 when possible for better randomness
Summary: Using the `random` module in the Grist `UUID()` function is not cryptographically secure, and is only necessary for the old pynbox (Python 2) sandbox which doesn't support `os.urandom`. This diff uses the `uuid.uuidv4()` function from the Python standard library when possible, which is more secure, only falling back to the old implementation when necessary.

Test Plan: Added Python unit tests to check both implementations.

Reviewers: dsagal

Subscribers: paulfitz, dsagal

Differential Revision: https://phab.getgrist.com/D3578
2022-08-12 16:45:11 +02:00
..
2022-06-17 21:53:20 +02:00
2020-07-29 08:57:25 -04:00
2022-06-17 21:53:20 +02:00
2022-07-14 12:09:56 +02:00
2022-07-14 12:09:56 +02:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-06-17 21:53:20 +02:00
2022-05-04 21:41:42 +02:00
2022-07-14 12:09:56 +02:00
2022-05-04 21:41:42 +02:00
2022-05-04 21:41:42 +02:00