stubs/django/utils/crypto.pyi (2 lines of code) (raw):

# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. def constant_time_compare(val1: str, val2: str) -> bool: ... def get_random_string(length: int) -> str: ...