Re: [fpc-pascal] ARM-embedded Interrupt numbers

2015-08-14 Thread Marc Santhoff
Hi Koenraad, On Fr, 2015-08-14 at 09:08 +0200, Koenraad Lelong wrote: Is this the way to do it ? Or is there better way ? Or does this exist already ? Comments please. If that's a proper way to do this, how could this be included in a next version of fpc ? Do I make a bug-report

[fpc-pascal] ARM-embedded Interrupt numbers

2015-08-14 Thread Koenraad Lelong
Hi, I'm trying to restart my arm-embedded project. A few years ago I had a working compiler, with some utility-files. I made a new cross-compiler (fpc svn 31290). But I don't find where the interrupt-numbers of an STM32F103xx processor are defined. So I made an inc-file and added that to e.g.

Re: [fpc-pascal] quality of FPC random

2015-08-14 Thread Jonas Maebe
Xiangrong Fang wrote on Fri, 14 Aug 2015: I need to generate random numbers to be used as IV of block ciphers. My question is: is FPC built-in PRNG good enough as comparing to /dev/urandom? No PRNG is suited for that purpose, because every PRNG is by definition predictable and you need

[fpc-pascal] quality of FPC random

2015-08-14 Thread Xiangrong Fang
Hi All, I need to generate random numbers to be used as IV of block ciphers. My question is: is FPC built-in PRNG good enough as comparing to /dev/urandom? On the other hand, /dev/urandom in my impression is fairly slow, how is the speed of Random() comparing to that? Thanks! Xiangrong

Re: [fpc-pascal] quality of FPC random

2015-08-14 Thread Michael Schnell
On 08/14/2015 03:47 PM, Jonas Maebe wrote: My question is: is FPC built-in PRNG good enough as comparing to /dev/urandom? No PRNG is suited for that purpose, because every PRNG is by definition predictable and you need unpredictable numbers for IVs. How should /dev/urandom not be

Re: [fpc-pascal] quality of FPC random

2015-08-14 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 08/14/2015 03:47 PM, Jonas Maebe wrote: My question is: is FPC built-in PRNG good enough as comparing to /dev/urandom? No PRNG is suited for that purpose, because every PRNG is by definition predictable and you need unpredictable numbers for IVs. How should

Re: [fpc-pascal] quality of FPC random

2015-08-14 Thread Xiangrong Fang
2015-08-14 21:47 GMT+08:00 Jonas Maebe jonas.ma...@elis.ugent.be: Xiangrong Fang wrote on Fri, 14 Aug 2015: I need to generate random numbers to be used as IV of block ciphers. My question is: is FPC built-in PRNG good enough as comparing to /dev/urandom? No PRNG is suited for that

Re: [fpc-pascal] quality of FPC random

2015-08-14 Thread Jonas Maebe
Xiangrong Fang wrote on Fri, 14 Aug 2015: 2015-08-14 21:47 GMT+08:00 Jonas Maebe jonas.ma...@elis.ugent.be: No PRNG is suited for that purpose, because every PRNG is by definition predictable and you need unpredictable numbers for IVs. ​Well, practically, how can I get totally

Re: [fpc-pascal] ARM-embedded Interrupt numbers

2015-08-14 Thread Michael Ring
Jeppe would be the best person to answer your question anyway as he is the master of (nearly) all files in the embedded directory. I just checked, when I created my own units for other devices I included those const's, it seems that they never were in Jeppe's files could it be that you saw

Re: [fpc-pascal] ARM-embedded Interrupt numbers

2015-08-14 Thread Jeppe Johansen
On 08/14/2015 09:08 AM, Koenraad Lelong wrote: Is this the way to do it ? Or is there better way ? Or does this exist already ? Comments please. If that's a proper way to do this, how could this be included in a next version of fpc ? Do I make a bug-report including the new file, with