I am interested in java.util.Random and java.security.SecureRandom classes. I found that Random uses system clock to generate seed and SecureRandom uses /dev/random or /dev/urandom but these files are on Linux, while on Windows it uses some mistic CryptGenRandom. Even if that is super secure function, do we know from where does it take values? What is the basement to generate seed?
Seed to java.security.SecureRandom on Windows os
1.5k Views Asked by Michu93 At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in WINDOWS
- Get Maximum Log Size
- Debugging Windows Services while starting
- Possible consequences of duplicate ProgId for different classes
- How to chain BCryptEncrypt and BCryptDecrypt calls using AES in GCM mode?
- mingw-64 conflicting declarations when cross-compiling
- I run an EXE program from a Windows Service but I can't see form C#?
- Why is PowerShell "not recognized" when installing Chocolatey?
- How to check if Windows device is phone or tablet/pc?
- How to add directories to Cygwin gcc default search path
- Can't install anything with pip2 on Windows 7 due to UnicodeDecodeError
- Active directory and linux nslcd binding without extending the AD schema
- How To Prevent Over Scrolling in Scroll Viewer Windows Phone 8.1
- Unicode error from pip install
- Where is the 'EnablePinning' property in the ribbon framework's recent items?
- How can I implement the same models and data across ASP.NET and Windows Apps
Related Questions in RANDOM
- issue in my if statement to make comparison in my java program
- Interesting random PHP include issue
- Why do the random number crashes my Android app?
- Unique random character generator
- I made a for loop to swap two indiv char variables in a string
- List with random numbers in Haskell
- Randomly sample lines retaining commented header lines
- How do you generate specific random number?
- Randomizing values accounting for floating point resolution
- Python random use both state and seed?
- Random without repetition?
- How to produce multiple output files with a single input file using the command 'np.random.normal'?
- Generate random ROWID
- Random number generator problems
- How to take same random sample from dataset every time
Related Questions in SEED
- Random Numbers Generator based on Current Time and Birth Date
- Seed Stack W20 Framework where to include service js file in configuration
- Can an Encryption Seed/Algorithm be Reverse-Engeered from Compiled Code?
- How do I create or update a model based on one of its attributes? (Rails 5)
- Reproducible Random Values in Vector of Arbitrary Length
- How should I properly seed srand()
- Provide a random seed to ASLR on Linux
- How can I display an image in Laravel 5.3 using *BLOB?
- Creating seed file combining two models
- Different random number sequences on different computers
- Sequelize js orm seeder for multiple relational table
- Seed.rb in Ruby on Rails for creating database
- Rails seeding a boolean value not working
- Importing a MongoDb Collection through Ruby (ROR)
- how to query seed used by random.random()?
Related Questions in SECURE-RANDOM
- Generate random number in range with SecRandomCopyBytes
- Why does the BigInteger.isProbablePrime() function in Java return true for negative numbers?
- HMAC_DRBG algorithm for Java SecureRandom: only possible in Java 9?
- Does the KeyPairGenerator class behave differently in Java 1.6 and Java 1.8?
- Use a dynamically-generated, random IV | SecureRandom unable to decrypt the encrypted values
- SecureRandom stream weird behavior with multiple threads
- How to access SecureRandom in jsbn typescript?
- Seed to java.security.SecureRandom on Windows os
- How to use SecureRandom output in a byte array properly?
- Generating Predictable Secure Random Numbers
- How to use SecureRandom instead of using hardcoded bytes array for Java AES Encrytion and Decryption?
- RandomUUID in UUID operators code explanation
- Java SecureRandom generate URL like Medium.com (Random 12 characters)
- Generating random number of length 6 with SecureRandom in Ruby
- secure random seed and derby database creation
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The class java.security.SecureRandom Uses the system API provided by the OS host. Each OS has their own process to generate random numbers.
In Windows SecureRandom uses the method CryptGenRandom that is part of WinCrypt Windows library (Included in Advapi32.dll of Windows System libraries).
All the documentation about the Windows function is available in the Microsoft docs of CryptGenRandom