Merge "Fix typos in initialize-urandom.py & gerrit-git-prep.sh"
This commit is contained in:
@@ -53,7 +53,7 @@ if [ -z "$ZUUL_REF" ]; then
|
|||||||
# use the origin since zuul mergers have outdated branches
|
# use the origin since zuul mergers have outdated branches
|
||||||
ZUUL_URL=$GIT_ORIGIN
|
ZUUL_URL=$GIT_ORIGIN
|
||||||
else
|
else
|
||||||
echo "Provide either ZUUL_REF or BRANCH in the calling enviromnent."
|
echo "Provide either ZUUL_REF or BRANCH in the calling environment."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ class Pump(object):
|
|||||||
r = self.getrandom(1, nonblock=True)
|
r = self.getrandom(1, nonblock=True)
|
||||||
if len(r) != 1:
|
if len(r) != 1:
|
||||||
raise Exception("No data returned from getrandom")
|
raise Exception("No data returned from getrandom")
|
||||||
print("Nonblocking pool initilaized")
|
print("Nonblocking pool initialized")
|
||||||
return True
|
return True
|
||||||
except GeneratorNotInitializedError:
|
except GeneratorNotInitializedError:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user