File: deterministic-id.patch

package info (click to toggle)
xmds2 3.1.0%2Bdfsg2-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,616 kB
  • sloc: python: 64,051; cpp: 4,868; ansic: 1,463; makefile: 144; sh: 54; javascript: 8
file content (17 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Avoid randomness in Cheetah-generated IDs
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: not-needed
Last-Update: 2019-01-18

--- xmds2-2.2.3+dfsg.orig/xpdeint/waf_extensions/cheetah.py
+++ xmds2-2.2.3+dfsg/xpdeint/waf_extensions/cheetah.py
@@ -6,6 +6,9 @@ cheetah.py
 Created by Graham Dennis on 2009-02-28.
 """
 
+import random
+random.seed(0)
+
 try:
     from Cheetah.Template import Template
 except ImportError: