flat assembler
Message board for the users of flat assembler.
Index
> Main > Intel has added a new instruction (RDRAND) Kewl ! Goto page Previous 1, 2 |
Author |
|
DOS386 21 Aug 2011, 15:38
> But before that new instruction, programmers had to work with rdtsc only?
YES. And before RDTSC they had this technology: http://xkcd.com/221/ |
|||
21 Aug 2011, 15:38 |
|
f0dder 21 Aug 2011, 16:00
DOS386 wrote: > But before that new instruction, programmers had to work with rdtsc only? If you use a decent PRNG, you might be able to get away with seeding it fromt RDTSC... but using RDTSC *in* the PRNG? Doesn't seem like a good idea, as it's a sequentially increasing number. _________________ - carpe noctem |
|||
21 Aug 2011, 16:00 |
|
DOS386 21 Aug 2011, 16:11
You can pick randomness from keystokes, mouse movements, HD, BIOS clock, RDTSC, temperature sensors, audio input, ...
|
|||
21 Aug 2011, 16:11 |
|
emc 21 Aug 2011, 16:35
I perceive, thanks for these informations!
|
|||
21 Aug 2011, 16:35 |
|
AsmGuru62 22 Aug 2011, 13:13
There are also these RNGs:
http://en.wikipedia.org/wiki/Xorshift http://en.wikipedia.org/wiki/Mersenne_twister I tested these for my STAR TREK clone - excellent generators. |
|||
22 Aug 2011, 13:13 |
|
revolution 22 Aug 2011, 13:19
AsmGuru62 wrote: There are also these RNGs: |
|||
22 Aug 2011, 13:19 |
|
AsmGuru62 22 Aug 2011, 16:32
Yes, but as I said - tests will not show the difference between the REAL generator and PSEUDO one.
|
|||
22 Aug 2011, 16:32 |
|
revolution 02 Sep 2011, 00:42
Interesting article about the all-digital generator Intel use.
http://spectrum.ieee.org/computing/hardware/behind-intels-new-randomnumber-generator/0 Quote: Our previous analog random-number generator was able to produce only a few hundred kilobits of random numbers a second, whereas our new generator spins them out at a rate of around 3 gigabits per second. |
|||
02 Sep 2011, 00:42 |
|
MCD 15 Dec 2011, 01:02
Here is the problem with a real random number instruction:
How can you check that the instruction delivers real physical random numbers, and not simply a TSC-seeded PRNG value? Especially on a chip where you neither know the layout nor can verify its implementation. After all, you can't say "that result shouldn't happen according to that input", since every output is as likely to occur as any other. On the other hand, maybe the instruction was not intended to be used as a cryptographically secure hardware random number generator, or was it? |
|||
15 Dec 2011, 01:02 |
|
revolution 15 Dec 2011, 01:19
MCD wrote: How can you check that the instruction delivers real physical random numbers, and not simply a TSC-seeded PRNG value? MCD wrote: On the other hand, maybe the instruction was not intended to be used as a cryptographically secure hardware random number generator, or was it? |
|||
15 Dec 2011, 01:19 |
|
Matrix 02 Feb 2012, 21:18
ahah i did something similar now for amd64, getting random numbers at speeds limited by memory write performance
|
|||
02 Feb 2012, 21:18 |
|
f0dder 02 Feb 2012, 21:22
Matrix wrote: ahah i did something similar now for amd64, getting random numbers at speeds limited by memory write performance _________________ - carpe noctem |
|||
02 Feb 2012, 21:22 |
|
Matrix 02 Feb 2012, 21:34
f0dder wrote:
that was fast i'll post details, but now i'm kind of busy |
|||
02 Feb 2012, 21:34 |
|
f0dder 02 Feb 2012, 21:41
Does it involve using special chipset features? (Some AMD (and Intel, for that matter) chipsets have had hardware rngs), or does it involve read/writing arbitrary memory regions that don't have physical memory backing?
|
|||
02 Feb 2012, 21:41 |
|
edfed 06 Feb 2012, 08:29
no need of rdtsc to generate prng at all.
prng just generate a sequence of bits for a given seed. change the seed, you have a different sequence. |
|||
06 Feb 2012, 08:29 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.