Download tasks/codeql_python_benchmark51_v2/pyvul-3062589ff0b3b95c2ed7/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-3062589ff0b3b95c2ed7/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_python_benchmark51_v2/pyvul-3062589ff0b3b95c2ed7/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_python_benchmark51_v2/pyvul-3062589ff0b3b95c2ed7/patch.diff
1.35 kB
| diff --git a/CHANGELOG.md b/CHANGELOG.md | |
| index ba9187c0a3..6149f587ea 100644 | |
| --- a/CHANGELOG.md | |
| +++ b/CHANGELOG.md | |
| The types of changes are: | |
| - User preferences from cookie should always override experience preferences [#4405](https://github.com/ethyca/fides/pull/4405) | |
| - Allow fides_consent cookie to be set from a subdirectory [#4426](https://github.com/ethyca/fides/pull/4426) | |
| +### Security | |
| +-- Use a more cryptographically secure random function for security code generation | |
| + | |
| ## [2.23.3](https://github.com/ethyca/fides/compare/2.23.2...2.23.3) | |
| ### Fixed | |
| diff --git a/src/fides/api/service/privacy_request/request_runner_service.py b/src/fides/api/service/privacy_request/request_runner_service.py | |
| index d1154ba3e7..266a981cb1 100644 | |
| --- a/src/fides/api/service/privacy_request/request_runner_service.py | |
| +++ b/src/fides/api/service/privacy_request/request_runner_service.py | |
| -import random | |
| +import secrets | |
| from datetime import datetime, timedelta | |
| from typing import Any, Dict, List, Optional, Set, Tuple | |
| def generate_id_verification_code() -> str: | |
| """ | |
| Generate one-time identity verification code | |
| """ | |
| - return str(random.choice(range(100000, 999999))) | |
| + return str(secrets.choice(range(100000, 999999))) | |
| def _retrieve_child_results( # pylint: disable=R0911 | |