Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 300041
Collapse All | Expand All

(-)client/klive.tac.orig (-2 / +2 lines)
Lines 77-83 Link Here
77
77
78
PORT = 4921
78
PORT = 4921
79
79
80
import sys, os, struct, md5, re, glob, stat, zlib, socket
80
import sys, os, struct, hashlib, re, glob, stat, zlib, socket
81
81
82
from twisted.internet.protocol import DatagramProtocol
82
from twisted.internet.protocol import DatagramProtocol
83
from twisted.internet import reactor
83
from twisted.internet import reactor
Lines 122-128 Link Here
122
	return struct.pack('!H', len(s)) + s
122
	return struct.pack('!H', len(s)) + s
123
123
124
def gen_random_hash():
124
def gen_random_hash():
125
	return md5.new(file('/dev/urandom').read(100) + os.uname()[1]).digest()	
125
	return hashlib.md5(file('/dev/urandom').read(100) + os.uname()[1]).digest()	
126
126
127
def hexdigest(digest):
127
def hexdigest(digest):
128
	import string
128
	import string

Return to bug 300041