Permalink
Browse files

formatting

  • Loading branch information...
1 parent 85fab06 commit cddd2b276a4c9adfc36e44da7497c0b8f490ddbc @kravietz committed Jan 20, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 README.md
View
@@ -1,7 +1,6 @@
# winrandom
-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:
+This module gives direct access to Windows Cryptographic API CryptGetRandom() function, which is cryptographically strong pseudo-random number generator (PRNG) on Windows:
* **long()** returns random unsigned _long_ integer
@@ -14,13 +13,11 @@ provide output directly from the PRNG:
>>> 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_). 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_).
>>> 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_).
-
# History
* 1.0 added winrandom.long()
* 1.1 added winrandom.bytes(num)

0 comments on commit cddd2b2

Please sign in to comment.