Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9146323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:43:23+00:00 2026-06-17T10:43:23+00:00

I wrote a code which generates random numbers based on a private cryptography project

  • 0

I wrote a code which generates random numbers based on a private cryptography project ( for educational purposes ). Now i want to check how the quality of my random number generator is.

Tests i already did:

  • Count all numbers together and check the distance to zero ( Numbers can be negative and positive )
  • Compare the random numbers with the System.Random class ( The duplicated numbers are at the half of the .NET’s random generator )

What can i further do to check how good the algorithm is working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:43:25+00:00Added an answer on June 17, 2026 at 10:43 am

    What can i further do to check how good the algorithm is working?

    The ultimate way would be to give a formal proof for that it is hard to distinguish this pseudorandom sequence from a truly random sequence, e.g., by reducing this distinguishing problem to another problem that is proven (or at least strongly believed) to be hard (like for example taking the discrete logarithm).

    This part of Cryptography is called Provable Security, which provides some nice proof techniques and concepts (hard-core predicates, one-way functions, distinguishing attack, hybrid distributions, …). However, it can only be applied if your algorithm has a mathematical fundament that can be handled formally.

    From this field, the very first quality check is: Would it be ok if you would tell the rest of the world all the details of your algorithm and all its concepts and ideas? If not, then there is something wrong, since no encryption scheme should base on hiding how it works. The only secret must be the individual secret key (resp. random seed), but not the algorithm itself. For example, the Caesar chipher is easy to break once it is known how it works. In contrast to that, AES is an open standard, but it is still believed to be secure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a code which generates random strings and numbers from random class in
I wrote a code generator which generates POCOs and repositories for a given SQL
I wrote some code which monitors the output of Stopwatch using a tight loop.
So, I wrote a code which uses some Microsoft Sql server dlls, these dlls
I have wrote the code below which was taken from Java How to program
I'm working with the jQuery Validation plugin and I wrote the following code which
I wrote code to get name of printer which is installed in my system.but
I wrote few lines of code which doesn't work correctly. Why? Could sb explain
Below is the code which I wrote to display a tooltip content. As the
I have been refactoring throwaway code which I wrote some years ago in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.