Questions tagged [random-number-generator]
A Random Number Generator is a device or program that generates (pseudo)random numbers for use in cryptography. Examples are the Unix devices `/dev/random` and `/dev/urandom`
25
questions
4
votes
1
answer
3k
views
Debian 11 - Low entropy (256) even with Haveged and rng-tools on old laptop
I have a problem with an old laptop.
I have installed a debian 11 operating system on it a year ago, and despite using it almost daily to perform network administration, I recently found its available ...
3
votes
2
answers
3k
views
How to get enough entropy into Docker containers?
Whenever I cat /proc/sys/kernel/random/entropy_avail inside my Docker containers (Linux 5.10 based), I get a double-digit result, which is apparently laughably low. Supposedly anything below 4 digits ...
1
vote
1
answer
71
views
A predictably random shuffeling of input lines with bash's `$RANDOM` doesn't work
I have an input of about 100 lines. I want to shuffle them "randomly", but I want to control it. i.e. I want to seed the random number generator to always produce the same ordering.
I ...
2
votes
1
answer
1k
views
Can SSL/TLS deplete the entropy pool of my server?
I tried to gain a bit of understanding about how SSL/TLS works and had a look at the TLS handshake in TLS 1.2 and TLS 1.3, and where random numbers from the server come into play there. Since every ...
2
votes
1
answer
906
views
AWS Linux Source Code? [closed]
We are looking for the source code for Amazon Web Services (AWS) AWS Linux kernel. This should be available under the GPL, but we can't find it, and our requests to Amazon have gone unanswered.
...
2
votes
1
answer
247
views
Why can't I manually seed the FreeBSD random number generator?
Years ago, I could manually seed the random number generator in FreeBSD by setting:
sysctl -w kern.random.sys.seeded=0
... and then if I deleted my SSH keys (on purpose) and restarted sshd, I would ...
1
vote
0
answers
2k
views
Apache and htpasswd getting errors from random number generator
Recently (probably after yum update something), one of my CentOS7 server running Apache2.4.37 has started to produce the following errors.
apachectl configtest
(38)Function not implemented: AH00141: ...
-3
votes
1
answer
1k
views
What does the hexdump of the first 16 bytes of /dev/random mean? [closed]
What does the hex dump of the first 16 bytes of /dev/random mean?
When I run head -c 16 /dev/random I get the following results:
0000000 fd43 2676 f87d 8f78 00c9 3119 f697 100c
0000010
What do ...
2
votes
1
answer
985
views
How EJBCA generate private key
I'm looking for the method used by EJBCA to generate the private keys in general (CA, Sub-Ca, certificates...).
Let say for instance you want RSA 2048 key size.
Is the generation process all done in ...
7
votes
2
answers
466
views
LUKS Error During Boot
alg: drbg: could not allocate DRNG handle for ...
I only see this error on the console during the boot process of virtual machines we create. EDIT: 2/5/16 - I see it on some bare-metal installations, ...
-1
votes
1
answer
3k
views
Create random file with openssl [closed]
So I read this questionUrandom Alternative, but I am unable to make a comment there (without 50 rep) - therefore I open a separate question:
If I use this command instead of dd and urandom, how do I ...
-2
votes
1
answer
107
views
How to verify whether randomness was written to a device and what exactly has been written?
I am preparing a device with shred to use it later on encrypted with dm-crypt/cryptsetup/luks.
How can I check the device before and after using shred or e.g openssl/dd with /dev/urandom to be sure ...
1
vote
2
answers
2k
views
How many bits of entropy per byte read from /dev/random and /dev/urandom?
Approximately how many bits of entropy are contained in each byte read from /dev/random and /dev/urandom? Data from /dev/random uses the kernel random-number generator while /dev/urandom uses a CPRNG ...
1
vote
1
answer
907
views
Run 'rng-tools' in OpenVZ container
I have a problem with run 'rngd' inside OpenVZ container:
root@server:~# rngd -r /dev/urandom
unable to adjust write_wakeup_threshold: Permission denied
Is it possible to run an application in ...
0
votes
1
answer
97
views
Hosting a /dev/random dependent service
I have developed a game that requires shuffled decks of cards to run.
Since it uses /dev/random to generate shuffled decks, I was wondering what sort of concerns should I take into account before ...
1
vote
1
answer
1k
views
Is the shred utility always safe given a good random number generator?
I recently experimented with different methods of disk randomization to find what would get the job done fastest. The openssl random number generator with AES in counter mode was said to be pretty ...
15
votes
2
answers
8k
views
Is there a way to monitor /dev/random?
We're investigating some JDBC issues, and one of the possible problems is /dev/random being exhausted. The workaround is to switch the JVM to using /dev/urandom, but I wan't to try and determine ...
0
votes
1
answer
4k
views
Is it possible to pass /dev/urandom through from the host to a qemu/kvm guest?
I'd like to pass the host's /dev/urandom device through to a qemu/kvm virtual machine.
Note that /dev/urandom is not seekable, so it's not possible to pass it through as a block device using -hda, -...
4
votes
1
answer
9k
views
Nginx (openresty) generating random numbers
I have openresty set up on a server (nginx bundle which includes the lua module) and I'm trying to create a script which has specific odds of setting a cookie on a user's browser. My code looks like ...
2
votes
1
answer
3k
views
modprobe amd-rng fails, No such device
When trying to install hw_random to a 2.6 kernel, modprobe returns a FATAL error "No such device" on both CentOS 5.7 and Fedora 15. Both are using the latest kernel, respectively.
The .ko file exists,...
21
votes
6
answers
21k
views
How do I get /dev/random to work on an Ubuntu virtual machine?
Apparently, /dev/random is based on hardware interrupts or similar unpredictable aspects of physical hardware. Since virtual machines don't have physical hardware, running cat /dev/random within a ...
74
votes
7
answers
109k
views
How to read in N random characters from /dev/urandom?
read /dev/urandom 3
The above is not working..How can I read random bytes from /dev/urandom in bash?
2
votes
3
answers
2k
views
Feeding the kernels entropy source from other machines and/or increasing its maximum size
We have has a little trouble with a small box that acts as a VPN end-point and mail relay for our network, caused by the available entropy for /dev/random being too low (which causes TLS connection ...
3
votes
3
answers
2k
views
Munin "Available entropy" when using address space layout randomization
Having just configured Munin for statistics logging on my gentoo server (hardened profile), I am noticing that my "Available entropy" is consitently in the 200-300 range. This seems way to low, so I ...
4
votes
9
answers
760
views
Random Number Generation [closed]
I have a need for true random number generation. I've been looking at a number of hardware solutions. Does anybody have any solid experiences with these? Any recommendations?
I don't think I can make ...