/[glsr]/trunk/harmonious/_sessionutils.py
Gentoo

Diff of /trunk/harmonious/_sessionutils.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 15 Revision 16
1__id__ = '$Id: $' 1__id__ = '$Id$'
2__modulename__ = '_sessionutils' 2__modulename__ = '_sessionutils'
3 3
4import sha 4import sha
5import hmac 5import hmac
6from time import time 6from time import time
21 21
22 # TODO: Just using the client IP addr isn't great. 22 # TODO: Just using the client IP addr isn't great.
23 23
24def gen_session_id(client_addr): 24def gen_session_id(client_addr):
25 25
26 return _gen_hash(_gen_sid(client_addr)) 26 sid = _gen_sid(client_addr)
27
28 return sid + _gen_hash(sid)

Legend:
Removed from v.15  
changed lines
  Added in v.16

  ViewVC Help
Powered by ViewVC 1.1.20