Sfoglia il codice sorgente

use a random secret key (#3971)

liang.he 1 anno fa
parent
commit
8d51a3c7a8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tests/fuzz/wasm-mutator-fuzz/server/app/main.py

+ 1 - 1
tests/fuzz/wasm-mutator-fuzz/server/app/main.py

@@ -56,7 +56,7 @@ app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv(
 app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
 
 
-app.secret_key = "hwhefsewljfejrlesjfl"
+app.secret_key = os.urandom(12).hex()
 
 db = SQLAlchemy(app)