Angelo Gladding
lahacker.net

dlv5vbq7lzlthol5 4b942a3185b37d00

angelo@lahacker.net

South Pasadena, California, United States
currently feels like 58.27°F with good 34 air quality

Home CodewebCommits

Primary key fingerprint: 4B94 2A31 85B3 7D00 3333 1F5B 7EA7 262D F7BC FE18 Subkey fingerprint: 09CE F88F 29CC 1A44 4AE6 BA73 D169 886E 865C 9DA1 Use `SystemRandom()` from `secrets`

by Angelo Gladding 09CEF88F29CC1A44

Changed Files

--- a/web/__init__.py

+++ b/web/__init__.py

 import os import pkg_resources import pathlib-import random import re+import secrets import shutil import signal import sys
 import warnings  # mf2py's beautifulsoup's unspecified parser -- force lxml? warnings.simplefilter("ignore") +random = secrets.SystemRandom()+ __all__ = ["application", "serve", "anti_csrf", "form", "secure_form",            "get_nonce", "get_token", "best_match", "sessions", "require_auth",            "tx", "templates", "uri", "kv", "header", "Application"]
         self.wrappers.extend(wrappers)      def add_path_args(self, **path_args):-        self.path_args.update({k: v.replace("\!", nb60_re)+        self.path_args.update({k: v.replace(r"\!", nb60_re)                                for k, v in path_args.items()})      def get(self, path):