Search found 313 matches

by Provoni
Nov 03, 2018 10:32
Forum: Projects
Topic: AZdecrypt
Replies: 7
Views: 2670

Re: AZdecrypt

http://i66.tinypic.com/2priq9t.png New version 1.12: http://www.zodiackillersite.com/viewtopic.php?f=81&t=3198 - Optimized "nulls and skips" solver with the help of smokie treats. - Updated Reddit n-grams. This however increased the download to about 560 megabytes. - Much faster Solve...
by Provoni
Nov 01, 2018 14:54
Forum: General
Topic: Program icon larger than 48 by 48
Replies: 2
Views: 181

Re: Program icon larger than 48 by 48

I figured it out, partially at least. If you only include a 48 by 48 image in the icon file along with any larger size like 256 by 256 for example then for some reason it will not use the 256 by 256 image when you ask Windows to display large or very large icons. A workaround is then to only include...
by Provoni
Nov 01, 2018 14:34
Forum: General
Topic: Program icon larger than 48 by 48
Replies: 2
Views: 181

Re: Program icon larger than 48 by 48

Here's a person with the same problem: viewtopic.php?t=16076

He suggests to use Resedit to insert the icon manually. Will try.
by Provoni
Nov 01, 2018 10:43
Forum: General
Topic: Program icon larger than 48 by 48
Replies: 2
Views: 181

Program icon larger than 48 by 48

Hey all,

Even when using an icon that has multiple sizes up to 256 by 256 the icon never grows larger than 48 by 48 when using FbEdit and a .rc file. I really would like to have an icon that scales to at least 256 by 256. Anyone know how to do this?

Thank you.
by Provoni
Oct 20, 2018 16:04
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

deltarho[1859] wrote:That's it - a simple idea that works very well. The power of CryptoRNDII is Thread Pooling which showed how expensive ThreadCreate is when threads are short-lived and creations are requested rapidly.

Very interesting. How does your Thread Pooling work? I cannot tell by looking at the code.
by Provoni
Oct 20, 2018 6:19
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

deltarho[1859] wrote:What is the 'max' in '-gen GCC -O max'?

it is the same as -O 3 since that is currently the maximum optimization level.
by Provoni
Oct 20, 2018 6:17
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

Thank you for the table deltarho[1859].

CryptoRNDII is bad ass, PCG32II also very good too.
by Provoni
Oct 19, 2018 18:28
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

I use the official FB 1.05 64-bit with these switches: -gen GCC -O max -Wc -march=native,-funroll-loops,-ffast-math

No issues with the code. I refuse to compile with 32-bit, even for testing. Sorry :D
by Provoni
Oct 18, 2018 18:41
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

Why 'x = CryptoS' seems to be faster than 'x = 0' is testing me somewhat. I cannot reproduce this, x = cryptos is always slower than x = 0 for me: screenres 640,480,32 dim as double t,x dim as ulongint i,n=10^8 Const _WIN32_WINNT = &h0602 '#define algo 2 ' For Intel RdRand #Include "Crypto...
by Provoni
Oct 18, 2018 8:27
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

Instead of using "asm nop" it is better to do "x += rnd" and print x after the measurement because then the compiler can still do loop optimizations resulting in a higher and more realistic Mhz.
by Provoni
Oct 17, 2018 18:39
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

Thank you deltarho[1857], it works now.

I would also like to test PCG32II but have no clue how to use it. Could you give a small example please? And possibly also a small example of how you determine the Mhz of a RNG?
by Provoni
Oct 17, 2018 6:02
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

Suppose that you have a stream of random numbers (0,1,1,1,0,1,0,0,..). If the numbers are really random then the next number in the stream can be predicted with no more or less than 50% accuracy on average. So with that idea in mind I wrote a really fancy predictor that learns over time on a stream...
by Provoni
Oct 17, 2018 6:00
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

Trying to use CryptoRndll but it throws 2 errors while compiling: CryptoRndBufferCNG.inc(171) error 20: Type mismatch, before ')' in 'SwitchBufferCriteria = Cast(Long, ptrBuffer) + BufferSize' CryptoRndBufferCNG.inc(196) error 20: Type mismatch, before ')' in 'SwitchBufferCriteria = Cast(Long, ptrBu...
by Provoni
Oct 16, 2018 19:37
Forum: General
Topic: Fast random integers
Replies: 49
Views: 1878

Re: Fast random integers

My method: Say the program needs random integers between 0 and 25. 1. Pre-generate a large array (array 1) of random integers between 0 and 25. 2. Pre-generate another array (array 2) with 26 elements that has the integers from 0 to 25 placed randomly. 3. To get a random integer increment the positi...
by Provoni
Oct 16, 2018 7:23
Forum: General
Topic: The possible fallacy of faster PRNGs
Replies: 11
Views: 373

Re: The possible fallacy of faster PRNGs

My thoughts then. It's like the CPU core discussion for gaming, where people correctly argue that most don't need more than 4 cores for gaming, still people like the thought of having more than 4 CPU cores. Others really need more than 4 cores for stuff. It's about what you need for what you are doi...

Go to advanced search