twisted.python.randbytes.RandomFactory(object) class documentationtwisted.python.randbytes
(View In Hierarchy)
Factory providing secureRandom
and insecureRandom
methods.
You shouldn't have to instantiate this class, use the module level functions instead: it is an implementation detail and could be removed or changed arbitrarily.
| Method | secureRandom | Return a number of secure random bytes. | 
| Method | insecureRandom | Return a number of non secure random bytes. | 
| Method | _osUrandom | Wrapper around os.urandomthat cleanly manage its 
absence. | 
| Method | _randBits | Wrapper around os.getrandbits. | 
| Method | _randModule 0 | Wrapper around the randommodule. | 
| Method | _randModule | Wrapper around the randommodule. |