prng Questions

3

Solved

I have read that "the computational complexity of the Mersenne twister is O(p2) where p is the degree of the polynomial". What does this mean? Which polynomial is this referring to? Also, is co...
Stingaree asked 3/9, 2014 at 18:46

2

Solved

Let's say I'm creating a table foo with a column bar that should be a very large random integer. CREATE TABLE foo ( bar bigint DEFAULT round(((9223372036854775807::bigint)::double precision * ran...
Oily asked 22/3, 2012 at 3:37

3

Solved

I need to generate cryptographically strong random numbers and byte arrays. For this purpose, I'm using Java's SecureRandom class. But I'm not sure to choose which PRNG algorithm in terms of their ...
Regrate asked 23/12, 2014 at 14:46

2

Solved

After all this NSA stuff I was just wondering if anybody knows alternatives to the System.Security.Cryptography.RNGCryptoServiceProvider() from .NET - maybe an Open Source solution? I tried ...
Indistinctive asked 12/9, 2013 at 17:45

3

Solved

I have been using SecureRandom with a seeded SHA1PRNG algorithm to create shared randomness between two processes. I recently learned that SHA1 is being deprecated according to NIST's standards, so...
Bolten asked 4/10, 2012 at 16:4

5

Solved

I've seen this pseudo-random number generator for use in shaders referred to here and there around the web: float rand(vec2 co){ return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453); ...
Wilscam asked 18/10, 2012 at 21:46

9

Solved

I've struggled with this all day, I am trying to get a random number generator for threads in my CUDA code. I have looked through all forums and yes this topic comes up a fair bit but I've spent ho...
Karns asked 8/5, 2009 at 2:10

5

Solved

Im currently having trouble generating random numbers between -32.768 and 32.768. It keeps giving me the same values but with a small change in the decimal field. ex : 27.xxx. Heres my code, any h...
Guzman asked 1/2, 2013 at 2:22

4

Solved

What's the randomness quality of the Perlin Noise algorithm and Simplex Noise algorithm? Which algorithm of the two has better randomness? Compared with standard pseudo-random generators, does it...
Blowout asked 18/9, 2012 at 8:47

2

I was doing some parallel simulations in R and I notice that the seed is not changed when the "L'Ecuyer-CMRG" rng is used. I was reading the book "Parallel R", and the option mc.set.seed = TRUE sho...
Audley asked 25/2, 2013 at 15:25

2

Solved

I am looking to implement a simple pseudorandom number generator (PRNG) that has a specified period and guaranteed no collisions for the duration of that period. After doing some research I came ac...
Internuncial asked 23/8, 2012 at 16:33

4

Solved

I'm trying to find out the differences between /dev/random and /dev/urandom files What are the differences between /dev/random and /dev/urandom? When should I use them? when should I not use th...
Ptero asked 17/5, 2014 at 14:41

3

Solved

I've started some work of which requires some quality random bytes, such as 32 at a time for an initialising vector for certain cryptographic applications. My issue is, this may be called upon mult...
Alexisaley asked 4/8, 2011 at 22:49

3

I want to generate cryptographically secure unique uuids using php. uniqid() provides unique but not secure ids and openssl_random_pseudo_bytes() provides secure but not unique ids. Is the combina...
Shaff asked 16/7, 2015 at 10:14

1

Solved

On Stackoverflow there are many questions about generating uniformly distributed integers from a-priory unknown ranges. E.g. C++11 Generating random numbers from frequently changing range Vary ra...
Ingenuous asked 7/5, 2015 at 14:0

2

Solved

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 number generating process is not contaminated? I go...
Quindecennial asked 17/4, 2015 at 21:44

2

Solved

I have the following piece of code: unsigned int randomInt() { mt19937 mt_rand(time(0)); return mt_rand(); }; If I call this code, for example 4000 times in a for loop, I don't get rando...
Showy asked 9/4, 2015 at 22:4

2

Solved

Q: How do I generate (many) uniformly distributed integers from a-priory unknown ranges? What is the prefered way in terms of performance (milions of generated numbers)? Context: In my app I have ...
Uplift asked 9/8, 2014 at 19:20

1

I'm looking for an algorithm to generate random numbers from a given seed but with the particular requirement that it will always generate the same sequence of number regardless of the underlying c...
Rollet asked 24/12, 2014 at 19:5

2

Solved

In C++11 one can generate numbers with the use of std::random_device with or without a pseudo random number generator like mt19937. What will be the difference using this in this exemplar code: #...
Zack asked 16/11, 2014 at 20:37

2

Solved

Edit: This is using Google Chrome 36 I was messing around with html5 canvas, generating points randomly distributed inside a cube and projecting that onto a 2D canvas. Surprisingly, the results ...
Silverpoint asked 12/8, 2014 at 19:43

1

Solved

I have a HRNG that feeds /dev/random in Debian Wheezy. It's fast, so blocking will not be a problem. Now, in my Java code I want to ensure that I use the entropy in /dev/random and ONLY that entrop...
Symbolize asked 17/5, 2014 at 16:28

1

Solved

Over the past couple of days, I've been trying to find a good way to generate random numbers in PHP, based on a seed. Like I'm sure most of you already know, the php rand() method is way too random...
Leighannleighland asked 6/4, 2014 at 10:2

2

Solved

C++11 comes with a set of PRNG's. In what situation should one choose one over another? What are their advantages, disadvantages etc.
Ditchwater asked 1/3, 2014 at 8:2

1

Solved

Many userspace CSPRNG's have an issue where after fork(2), it's possible for the two different processes to return the same stream of random bytes. From looking at dtruss, it's clear that SecRando...
Natator asked 12/2, 2014 at 17:16

© 2022 - 2024 — McMap. All rights reserved.