Commit e6ebb38
authored
Random: get rid of
For seeding `MersenneTwister()` randomly, we were generating a random
seed via `RandomDevice()`, but if it failed, we used other means. This
was implemented in `random_seed()`, which dates back from a long time
ago, maybe when the ancestor of `RandomDevice()` had a reasonable chance
to fail.
But nowadays, it never fails in practice, and even the new default RNG
uses it fearlessly.
So RIP `random_seed()`.random_seed() (#58042)1 parent 019aa63 commit e6ebb38
1 file changed
+6
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 281 | + | |
295 | 282 | | |
296 | 283 | | |
297 | 284 | | |
| |||
370 | 357 | | |
371 | 358 | | |
372 | 359 | | |
373 | | - | |
| 360 | + | |
374 | 361 | | |
375 | 362 | | |
376 | | - | |
377 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
378 | 367 | | |
379 | 368 | | |
380 | 369 | | |
| |||
0 commit comments