From 2e5b2a0182b1b3ce627da0abb6517f7acbcc0b04 Mon Sep 17 00:00:00 2001 From: Aaron Toponce Date: Thu, 1 Jan 2015 09:09:00 -0700 Subject: [PATCH] remove Crypto.Random to support older python-crypto installations --- __init__.py | 1 - utils.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 5022cde..b2b6758 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,6 @@ """This module sets up the paths for the Flask web application.""" import os import utils -from Crypto import Random from flask import Flask, render_template, request, redirect, url_for from note import Note diff --git a/utils.py b/utils.py index a2d0b94..a2f5f66 100644 --- a/utils.py +++ b/utils.py @@ -1,6 +1,6 @@ """Utility functions for d-note.""" +import random from Crypto.Hash import SHA -from Crypto.Random import random from note import DATA_DIR def duress_text():