mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	
				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  | 
			||
|---|---|---|
| .. | ||
| __init__.py | ||
| date.py | ||
| info.py | ||
| logical.py | ||
| lookup.py | ||
| math.py | ||
| schedule.py | ||
| stats.py | ||
| test_schedule.py | ||
| text.py | ||
| unimplemented.py | ||