Timeline for Why does dd from /dev/random give different file sizes?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 1, 2024 at 17:50 | comment | added | Gilles 'SO- stop being evil' |
@HashimAziz Solved, yes. Simply, no. head -c is simpler.
|
|
| Nov 1, 2024 at 16:30 | comment | added | Hashim Aziz |
Is this not solved by simply passing the iflag=fullblock option to dd?
|
|
| Nov 18, 2019 at 9:38 | comment | added | Rufflewind |
Alternatively, if you need a POSIX compliant command, you can use the trick here: unix.stackexchange.com/a/192114 dd if=/dev/urandom ibs=1k obs=1k | dd bs=1k count=2
|
|
| Apr 21, 2018 at 20:54 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |
/dev/urandom no longer returns arbitrary-length output (thanks mikeserv)
|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Mar 17, 2017 at 13:14 | history | edited | CommunityBot |
replaced http://security.stackexchange.com/ with https://security.stackexchange.com/
|
|
| Mar 23, 2015 at 23:02 | comment | added | mikeserv |
on kernels since 3.16 /dev/urandom returns 32m per read().
|
|
| Feb 29, 2012 at 17:47 | comment | added | Daniel | Thanks for the tip on using head instead of dd. That allows me to still use /dev/random if I want to. Although /dev/urandom would probably be sufficient as you mention, it is nice to know how to use /dev/random should the need arise. | |
| Feb 29, 2012 at 17:43 | vote | accept | Daniel | ||
| Feb 29, 2012 at 1:57 | history | answered | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |