summaryrefslogtreecommitdiff
path: root/passlib/utils/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'passlib/utils/__init__.py')
-rw-r--r--passlib/utils/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/passlib/utils/__init__.py b/passlib/utils/__init__.py
index 051c93a..3edfaca 100644
--- a/passlib/utils/__init__.py
+++ b/passlib/utils/__init__.py
@@ -90,7 +90,8 @@ unix_crypt_schemes = [
"sha512_crypt", "sha256_crypt",
"sha1_crypt", "bcrypt",
"md5_crypt",
- "bsdi_crypt", "des_crypt"
+ # "bsd_nthash",
+ "bsdi_crypt", "des_crypt",
]
# list of rounds_cost constants
@@ -1445,6 +1446,9 @@ def getrandbytes(rng, count):
def getrandstr(rng, charset, count):
"""return string containing *count* number of chars/bytes, whose elements are drawn from specified charset, using specified rng"""
+ # NOTE: tests determined this is 4x faster than rng.sample(),
+ # which is why that's not being used here.
+
#check alphabet & count
if count < 0:
raise ValueError("count must be >= 0")