Commit 462d6e64 authored by Guido van Rossum's avatar Guido van Rossum

More robust way of choosing a non-existant uid (faster, too).

(Correct version -- the previous checkin was a keyboard slip.)
parent 6308d510
......@@ -62,7 +62,7 @@ else:
# Choose a non-existant uid.
fakeuid = 4127
while byuids.has_key(fakeuid):
print 'fakeuid =', fakeuid
fakeuid = (fakeuid * 3) % 0x10000
try:
pwd.getpwuid(fakeuid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment