Solved

RNGCryptoServiceProvider Random Numbers

Posted on 2015-02-09
2
104 Views
Last Modified: 2015-02-15
When using the Rnd Function in VB you can get the same sequence of random numbers by calling Rnd with a negative argument (Rnd(-1)), followed by Randoize with a positive numeric value (Randomize(n)) , where n is any positive number.
How can you achieve the same when using RNGCryptoServiceProvider?
0
Comment
Question by:Chris Joyce
2 Comments
 
LVL 27

Accepted Solution

by:
d-glitch earned 500 total points
ID: 40598688
I don't think that is possible.  Unpredictablity and unrepeatabity are the essential parts of the service.
0
 

Author Comment

by:Chris Joyce
ID: 40611035
Thats a pity it was a usefull feature.
Anyway I have found a way around this restriction, so i'll mark this as accepted.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hide vba in gp 7 104
What language/protocol is the Angular Chat? 2 83
Help Required 2 39
Eclipse Java import and method not resolved 4 43
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question