Author: arekm                        Date: Sun Feb 25 17:55:17 2007 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
getrandbits() doesn't exist in python 2.3; replace with something other

---- Files affected:
pld-builder.new/PLD_Builder:
   chroot.py (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/chroot.py
diff -u pld-builder.new/PLD_Builder/chroot.py:1.27 
pld-builder.new/PLD_Builder/chroot.py:1.28
--- pld-builder.new/PLD_Builder/chroot.py:1.27  Sun Feb 25 15:56:25 2007
+++ pld-builder.new/PLD_Builder/chroot.py       Sun Feb 25 18:55:12 2007
@@ -43,7 +43,7 @@
 
 def cp(file, outfile, user="builder", rm=False):
     m = md5.new()
-    m.update(str(random.getrandbits(4096)))
+    m.update(str(random.sample(xrange(100000), 500)))
     digest = m.hexdigest()
 
     marker_start = "--- FILE BEGIN DIGEST %s ---" % digest
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/pld-builder.new/PLD_Builder/chroot.py?r1=1.27&r2=1.28&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to