flat assembler
Message board for the users of flat assembler.
Index
> Linux > randomizing source with /dev/urandom |
Author |
|
redsock 30 May 2014, 03:10
Further details of what fasm is doing:
After a quick strace, fasm is trying to determine the file length of /dev/urandom and is of course unable to. open("//dev/urandom", O_RDONLY) = 3 lseek(3, 0, SEEK_END) = 0 thus, value out of range is because of the end returning 0... Hmm. |
|||
30 May 2014, 03:10 |
|
revolution 30 May 2014, 05:13
You could do any of:
|
|||
30 May 2014, 05:13 |
|
gens 30 May 2014, 19:47
redsock wrote: Further details of what fasm is doing: do a dd if=/dev/urandom of=./tmp_rand_file bs=1 count=n where n is how much bytes |
|||
30 May 2014, 19:47 |
|
redsock 30 May 2014, 22:51
revolution wrote: You could do any of: BAHAH, love your work revolution! It is actually for fixed Diffie-Hellman public parameters, which are fine to stay relatively static (when sufficiently large), but I thought the compile-time randomized selection from a pool of my verified safe primes would be a cool thing to add. Grabbing bytes from the PRNG before compile time certainly works, I was just hoping for a funky way to do it in the fasm source itself instead of scripting the build process and/or Makefiles. Cheers and thanks for the chuckles anyway, hahah! Legend! This one in particular: Quote: Increase the clock speed of you system to make it unreliable and produce random binaries each time |
|||
30 May 2014, 22:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.