Top "Entropy" questions

How to deal with a slow SecureRandom generator?

If you want a cryptographically strong random numbers in Java, you use SecureRandom. Unfortunately, SecureRandom can be very slow. If …

java performance security random entropy
Fastest way to compute entropy in Python

In my project I need to compute the entropy of 0-1 vectors many times. Here's my code: def entropy(labels): """ …

python numpy entropy
How to generate random SHA1 hash to use as ID in node.js?

I am using this line to generate a sha1 id for node.js: crypto.createHash('sha1').digest('hex'); The …

javascript node.js random sha1 entropy
How to calculate the entropy of a file?

How to calculate the entropy of a file? (Or let's just say a bunch of bytes) I have an idea, …

algorithm file-io entropy
What is the computer science definition of entropy?

I've recently started a course on data compression at my university. However, I find the use of the term "entropy" …

computer-science information-theory entropy data-compression
How do I compute the approximate entropy of a bit string?

Is there a standard way to do this? Googling -- "approximate entropy" bits -- uncovers multiple academic papers but I'd …

encryption entropy information-theory data-compression
Cross Entropy in PyTorch

I'm a bit confused by the cross entropy loss in PyTorch. Considering this example: import torch import torch.nn as …

machine-learning deep-learning pytorch entropy loss
C++ Decision Tree Implementation Question: Think In Code

I've been coding for a few years but I still haven't gotten the hang of pseudo-coding or actually thinking things …

c++ machine-learning decision-tree entropy
PGP: Not enough random bytes available. Please do some other work to give the OS a chance to collect more entropy

Setup : Ubuntu Server on Virtual Machine with 6 cores and 3GB of RAM. when I am trying to generate a asymmetric …

linux random gnupg entropy
Calculating Entropy

I've tried for several hours to calculate the Entropy and I know I'm missing something. Hopefully someone here can give …

r frequency entropy