Skip to content

Commit

Permalink
Remove random_util, use os.urandom instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazerM committed Aug 22, 2015
1 parent f5c19ab commit ce3ebfb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 64 deletions.
4 changes: 2 additions & 2 deletions onepassword/padding.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from . import random_util
import os

import six

Expand All @@ -24,7 +24,7 @@ def pkcs5_unpad(string):
return string[:-amount_of_padding]


def ab_pad(string, block_size=16, random_generator=random_util.sort_of_random_bytes):
def ab_pad(string, block_size=16, random_generator=os.urandom):
"""AgileBits custom pad a string to the given block size
Arguments:
Expand Down
38 changes: 0 additions & 38 deletions onepassword/random_util.py

This file was deleted.

24 changes: 0 additions & 24 deletions tests/unit/random_tests.py

This file was deleted.

0 comments on commit ce3ebfb

Please sign in to comment.