[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

RNGCryptoServiceProvider Random Numbers

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
Chris Joyce
Asked:
Chris Joyce
1 Solution
 
d-glitchCommented:
I don't think that is possible.  Unpredictablity and unrepeatabity are the essential parts of the service.
0
 
Chris JoyceAuthor Commented:
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now