summaryrefslogtreecommitdiff
path: root/rsa/randnum.py
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-16 14:30:48 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-16 14:30:48 +0530
commit03c51e75de8f9969f3fd5f3885a33ef04ce7348a (patch)
tree828db6ba67a52aab6323981fbd7d0bfa5074e605 /rsa/randnum.py
parentf9981d28e8ef4a037f6d2598515e425b6c3fef11 (diff)
downloadrsa-git-03c51e75de8f9969f3fd5f3885a33ef04ce7348a.tar.gz
Parellelized testing. Caught a lot of bugs.
Diffstat (limited to 'rsa/randnum.py')
-rw-r--r--rsa/randnum.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rsa/randnum.py b/rsa/randnum.py
index 275da0f..f6494d8 100644
--- a/rsa/randnum.py
+++ b/rsa/randnum.py
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-'''Functions for generating random numbers.'''
+"""Functions for generating random numbers."""
# Source inspired by code by Yesudeep Mangalapilly <yesudeep@gmail.com>
@@ -24,11 +24,11 @@ from rsa import common, transform
from rsa._compat import byte
def read_random_bits(nbits):
- '''Reads 'nbits' random bits.
+ """Reads 'nbits' random bits.
If nbits isn't a whole number of bytes, an extra byte will be appended with
only the lower bits set.
- '''
+ """
nbytes, rbits = divmod(nbits, 8)