Article View: alt.privacy.anon-server
Article #174921hashcash 1.07 with better randomness (Re: benchmark win32 1.x hashcash.exe)
From: Adam Back
Date: Sun, 12 Sep 2004 01:41
Date: Sun, 12 Sep 2004 01:41
23 lines
2448 bytes
2448 bytes
OK the windows RNG API wasn't so hard to figure out using the OPENSSL code as an example, and it compiled easily with MINGW. So I just released hashcash.exe 1.07. http://www.hashcash.org/ -> binaries -> windows -> console ps. The inaccuracy of clock() on both linux (x86) and windows is somewhat of a nuisance as it makes accurate benchmarking and performance timing difficult. This is why there is slow but accurate test with "hashcash -sv" and fast but fairly inaccurate with "hashcash -s". Adam Thomas J. Boschloo wrote: > Well, clock() does seem to work under XP, it just returns the number of > milliseconds an app has run! Only, it seems to have a resolution of > 16/1000 seconds only :-( Close to 1/100 though! Only slightly worse. > > Still, it is probably time to indeed kiss that code goodbye and get > something more secure..
Technical Details
Message-ID:
<4143A960.7020509@cypherspace.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!pe1.news.blueyonder.co.uk!blueyonder!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newspeer1-win.ntli.net!newsfe3-win.ntli.net.POSTED!53ab2750!not-for-mailReferences:
<413E57CC.8020508@cypherspace.org> <4142219A.9020605@cypherspace.org> <4142fc55$0$153$3a628fcd@reader2.nntp.hccnet.nl> <414373E8.4050407@cypherspace.org> <41438731$0$766$3a628fcd@reader20.nntp.hccnet.nl> <41438b9e$0$156$3a628fcd@reader2.nntp.hccnet.nl>Show Full Headers
Complete Article Headers
Message-ID: <4143A960.7020509@cypherspace.org> Subject: hashcash 1.07 with better randomness (Re: benchmark win32 1.x hashcash.exe) Date: Sun, 12 Sep 2004 01:41:32 GMT From: Adam Back <adam@cypherspace.org> References: <413E57CC.8020508@cypherspace.org> <4142219A.9020605@cypherspace.org> <4142fc55$0$153$3a628fcd@reader2.nntp.hccnet.nl> <414373E8.4050407@cypherspace.org> <41438731$0$766$3a628fcd@reader20.nntp.hccnet.nl> <41438b9e$0$156$3a628fcd@reader2.nntp.hccnet.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!pe1.news.blueyonder.co.uk!blueyonder!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newspeer1-win.ntli.net!newsfe3-win.ntli.net.POSTED!53ab2750!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.privacy.anon-server In-Reply-To: <41438b9e$0$156$3a628fcd@reader2.nntp.hccnet.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 23 NNTP-Posting-Host: 82.3.243.71 X-Complaints-To: abuse@virgin.net X-Trace: newsfe3-win.ntli.net 1094953292 82.3.243.71 (Sun, NNTP-Posting-Date: Sun, 12 Sep 2004 02:41:32 BST Organization: Virgin Net Usenet Service