Permalink
Browse files

minor formatting fixes

  • Loading branch information...
1 parent cc11fa0 commit 85fab0647566fa608da49facba8b1ceeb315651d @kravietz committed Jan 20, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.md
View
@@ -3,20 +3,20 @@
This module gives direct access to Windows Cryptographic API CryptGetRandom() function, which is cryptographically strong pseudo-random number generator (PRNG) on Windows. Two winrandom functions
provide output directly from the PRNG:
-* *long()* returns random unsigned _long_ integer
+* **long()** returns random unsigned _long_ integer
>>> import winrandom
>>> winrandom.long()
2141228967
-* *bytes(_n_)* returns _n_ random bytes
+* **bytes(_n_)** returns _n_ random bytes
- >>> winrandom.bytes(10) +
+ >>> winrandom.bytes(10)
"\x1e'^';]\xda\xf0\x91\xba"
-* *range(_max_)* returns a random integer _i_ from range 0 to _max_ (0 <= _i_ < _max_).
+* **range(_max_)** returns a random integer _i_ from range 0 to _max_ (0 <= _i_ < _max_).
- >>> winrandom.range(1000) +
+ >>> winrandom.range(1000)
706
Random data originates from the PRNG but to ensure that the integer is not biased an algorithm from NIST SP800-90 is used (_B.5.1.1 Simple Discard Method_). In addition, in the internal loop a continuous random number generator test is executed (_FIPS 140-2 p. 44_).

0 comments on commit 85fab06

Please sign in to comment.