PersistentRandomPool save problems
CyBerHigh <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <[email protected]> |
I am attempting to use a Persistent random pool with this application of
mine. It creates the file but when it is suppose to load from the file
again it doesn't. It just creates a knew running of randpool here is an
example:
>>> import Crypto.Util.randpool
>>> ran = Crypto.Util.randpool.PersistentRandomPool('C:\\rand_pool')
>>>ran.add_event("403249rq09fja0wefj92Q04FNWafndSLFJLSdfjweIF0924W90JVALNVOIwf029wafewapoifmewapgfnawgrnirwfipwaenkgj;argt;afgnaofvnoatiopw4oiadsfnao")
7
>>>ran.entropy
7
>>> ran.save()
>>> b = Crypto.Util.randpool.PersistentRandomPool('C:\\rand_pool')
>>> b.entropy
0
From what I have read b.entropy should be 7 just like ran.entropy is. I
am doing something wrong or missing something?