I want to generate cryptographically secure unique uuids using php. uniqid() provides unique but not secure ids and openssl_random_pseudo_bytes() pro ...
I want to generate cryptographically secure unique uuids using php. uniqid() provides unique but not secure ids and openssl_random_pseudo_bytes() pro ...
I was wondering if there is any possibility to find out the RNG for the sequences below and accurately predict future sequences. It's an exact sample ...
What is the best and fastest algorithm to generate cryptographically secure PRNG? My requirements is as follows. In each run, I need to generate f ...
I am trying to understand how change the galois LFSR code to be able to specify the output bit number as a parameter for the function mentioned below. ...
Here's my delimna: I am writing an application that needs to exactly reproduce the PRNG output from a game that was written in Java that uses the Java ...
Can I do this instead of the normal procedure (single message block) if I only want good bit mixing of some input entropy for seeding a non-cryp ...
I've had this idea in my head for quite a while, but I failed to articulate it in a searchable way, so I thought I'd ask it as a question. There is a ...
In the code given below, I would like to implement a flag (or something equally simple) that has the same effect as commenting out the local setting a ...
On Stackoverflow there are many questions about generating uniformly distributed integers from a-priory unknown ranges. E.g. C++11 Generating rand ...
I have a loop. Inside the loop, in each iteration, I need to draw a number from U[0,1]. How can I use openmp, and also make sure that the random numbe ...
Can anybody help me create a simple pseudo-random sequence of +-1 integers with length 1000 using Matlab? I.e. a sequence such as I tried using t ...
Since this is about remapping a uniform distribution to another with a different range, this is not a PHP question specifically although I am using PH ...
I am designing an application with some security implications in Unity3D and deploying to iOS and Android. This got me wondering what PRNG unity is u ...
Suppose I have an array of bytes from a secure PRNG, and I need to generate a number between 1 and 10 using that data, how would I do that correctly? ...
I'm looking for a pseudo-random number generator that is "replayable" and "stateless". Let me elaborate: I need to be able to re-fetch a pseudo-random ...
i was "finding Pi" with Monte Carlo Method, but the answer was incorrect. The oryginal code was: It gives answer aroud 2.8-2.85 when I change the ...
I've been playing around with Xorshift* random number generators, and I came across this exploration of their properties. Quoting from that site (emph ...
I am using the Armadillo c++ library, that allows high-perfomance computation of matrices and vectors. This library has built-in functions to populate ...
So I am trying to make a 8-bit PRNG using a LFSR but I am told to use a specific polynomial(X^8 + x^3 + 1). How exactly do I implement this polynomial ...
Using this C code for reference (sourced from http://en.wikipedia.org/wiki/Xorshift): Is the following the equivalent java code in terms of maintai ...