• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • 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

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

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