[英]How to use C++ to generate super large independent and uniform distribution random numbers for cryptographic uses
For example, linear congruence might not be secure enough when generating random numbers when it is used in cryptography even though it is much easier to implement.例如,线性同余在密码学中使用时生成随机数时可能不够安全,尽管它更容易实现。 Are there existing methods to help us generate super large (eg, 1024-bit) random numbers or are there possible ways to generate that large numbers uniformly and independently?是否有现成的方法可以帮助我们生成超大(例如 1024 位)随机数,或者是否有可能统一且独立地生成如此大的数字?
If you are talking about cryptographiy then pseduorandom number gnerators just don't cut it.如果您在谈论密码学,那么伪随机数生成器就不要削减它。 Read 1024 bit from /dev/random on unix or whatever is equivalent on windows.从 unix 上的 /dev/random 或 windows 上的任何等效内容读取 1024 位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.