Skip to content

Commit

Permalink
Fix type error when seeding random (#1)
Browse files Browse the repository at this point in the history
* Fix type error when seeding random

* Re-enable entropy check
  • Loading branch information
b333z authored Aug 7, 2022
1 parent ecf0f72 commit 9302376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bless/aws_lambda/bless_lambda_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def check_entropy(config, logger):
response = kms_client.generate_random(
NumberOfBytes=random_seed_bytes)
random_seed = response['Plaintext']
with open('/dev/urandom', 'w') as urandom:
with open('/dev/urandom', 'wb') as urandom:
urandom.write(random_seed)


Expand Down
2 changes: 1 addition & 1 deletion bless/aws_lambda/bless_lambda_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def lambda_handler_host(
event, context=None, ca_private_key_password=None,
entropy_check=False,
entropy_check=True,
config_file=None):
"""
This is the function that will be called when the lambda function starts.
Expand Down

0 comments on commit 9302376

Please sign in to comment.