GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing cpppatterns.com — Unpredictable random numbers - C++ Patterns
← Patterns
Unpredictable random numbers
This pattern is licensed under the CC0 Public Domain Dedication.
Requires
c++11
or newer.
IntentSeed a random number engine with greater unpredictability. DescriptionA pseudo-random number engine is initialised with a seed, which determines the initial state of the engine. When seeding with a single 32 bit value (as is typically provided by std::random_device), the engine can be in one of only 232 states. By providing an an engine with a greater amount of random seed data, we increase the number of possible states and therefore the unpredicitability of the engine. On line 4, we create a While a Note: An unpredictable random number engine is not necessarily cryptographically secure. Share | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |