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-08-12 16:45:11 +02:00
2022-06-16 08:39:17 -07:00
2022-02-03 16:22:51 -05:00
2021-06-25 12:00:58 +02:00
2022-06-17 21:53:20 +02:00
2021-06-22 17:13:17 +02:00
2022-02-03 16:22:51 -05:00
2021-11-05 11:18:00 -04:00
2022-08-11 12:51:11 +02:00
2022-02-12 09:44:34 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 22:53:07 -04:00
2021-12-06 16:09:41 +01:00
2022-08-09 20:11:36 +02:00
2022-08-03 08:13:33 -07:00
2022-08-11 12:51:11 +02:00
2021-11-09 18:08:29 +02:00
2021-08-24 14:47:50 +02:00
2022-05-24 22:29:20 +02:00
2020-07-29 08:57:25 -04:00
2022-06-17 21:53:20 +02:00
2022-07-27 14:59:27 -04:00
2020-07-29 08:57:25 -04:00
2022-08-09 20:11:36 +02:00
2022-02-04 20:28:13 +02:00
2022-07-06 13:43:14 +02:00
2022-05-12 14:43:21 +02:00
2022-02-13 00:45:24 -05:00
2021-06-22 17:13:17 +02:00
2021-08-12 11:51:21 -07:00
2021-06-22 17:13:17 +02:00
2021-07-12 06:45:47 -04:00
2022-08-09 20:11:36 +02:00
2021-11-03 15:31:39 +01:00
2022-07-14 12:09:56 +02:00
2021-06-22 17:13:17 +02:00
2022-07-08 18:56:41 +02:00
2021-06-22 17:13:17 +02:00
2021-01-04 22:03:01 -05:00
2020-07-29 08:57:25 -04:00
2022-05-23 21:06:18 +02:00
2022-07-14 12:09:56 +02:00
2022-02-22 12:50:43 -05:00
2020-09-10 18:06:06 -04:00
2021-06-18 15:42:20 +02:00
2022-07-14 12:09:56 +02:00
2022-07-08 18:56:41 +02:00
2022-02-15 22:04:32 +02:00
2022-02-01 21:19:30 +02:00
2022-02-19 09:46:49 +00:00
2022-06-02 19:50:14 +02:00
2022-05-25 16:21:04 +02:00
2022-08-12 16:45:11 +02:00
2021-09-24 15:07:09 +02:00
2022-02-01 21:19:30 +02:00
2020-07-29 08:57:25 -04:00
2022-02-22 00:59:56 +02:00
2022-02-22 00:27:51 +02:00
2021-06-22 17:13:17 +02:00
2022-02-04 20:28:13 +02:00
2021-06-22 17:13:17 +02:00
2022-04-05 18:05:00 +02:00
2022-02-04 20:28:13 +02:00
2021-06-25 12:00:58 +02:00
2022-02-19 09:46:49 +00:00
2022-07-21 18:30:16 +02:00
2021-06-30 16:56:09 +02:00
2022-06-17 21:53:20 +02:00
2022-08-09 20:11:36 +02:00
2022-05-04 21:41:42 +02:00
2022-05-23 21:06:18 +02:00
2021-11-03 15:31:39 +01:00
2022-07-14 12:09:56 +02:00
2022-07-14 12:09:56 +02:00
2022-07-14 12:09:56 +02:00
2022-08-11 12:51:11 +02:00
2022-07-14 12:09:56 +02:00
2021-06-22 17:13:17 +02:00
2020-12-15 16:39:56 -05:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2022-02-22 12:50:43 -05:00
2020-07-29 08:57:25 -04:00
2021-09-30 14:16:24 +02:00
2022-05-04 21:41:42 +02:00
2021-06-25 12:00:58 +02:00
2022-02-22 12:50:43 -05:00
2022-08-03 08:13:33 -07:00
2020-07-29 08:57:25 -04:00
2022-05-04 21:41:42 +02:00
2021-06-25 22:53:07 -04:00
2021-06-25 12:00:58 +02:00
2020-07-29 08:57:25 -04:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2021-06-25 12:00:58 +02:00
2022-02-22 12:50:43 -05:00
2022-08-09 20:11:36 +02:00
2021-09-24 15:07:09 +02:00
2022-02-04 20:28:13 +02:00
2021-06-30 21:46:18 +02:00