Path: csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: bartekltg Newsgroups: comp.programming Subject: Re: Researches in quantum computing seem to progress only extremely slowly Date: Wed, 02 Sep 2015 23:22:25 +0200 Organization: Aioe.org NNTP Server Lines: 26 Message-ID: References: <20150901072207.925@kylheku.com> <20150901111251.317@kylheku.com> NNTP-Posting-Host: 8yDXz2POMePMu60eIS0/Vw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.programming:5730 On 02.09.2015 10:48, Mok-Kong Shen wrote: > > In my code PROVABLEPRIME > (http://s13.zetaboards.com/Crypto/topic/7234475/1/) there is no seed > to be input by the user at all. When the Python session starts, the > system employs the current time to seed its built-in PRNG. So each > time one uses the code to e.g. generate RSA keys, one gets a different > pair by chance. This is not safe. For cryptography use random.SystemRandom or os.urandom(n) in python; std::random_device from in c++ ... bartekltg