File: deterministic-id.patch

package info (click to toggle)
xmds2 3.0.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,956 kB
  • sloc: python: 64,216; cpp: 3,929; ansic: 1,463; makefile: 115; sh: 54
file content (17 lines) | stat: -rw-r--r-- 434 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 Laboissiere <rafael@debian.org>
Forwarded: no
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: