Commit ff36484
committed
Change hand-picked RNGs back to
While `Xoshiro256+` is faster on 64-bit, it has low linear complexity in the
lower three bits, which *are* used when generating dither.
Also, while `Xoshiro128StarStar` access one less variable from the heap,
multiplication is generally slower than addition in hardware.SmallRng
1 parent 4c89a72 commit ff36484
3 files changed
Lines changed: 7 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 45 | + | |
| 46 | + | |
63 | 47 | | |
64 | 48 | | |
65 | 49 | | |
66 | | - | |
| 50 | + | |
67 | 51 | | |
68 | 52 | | |
69 | 53 | | |
| |||
90 | 74 | | |
91 | 75 | | |
92 | 76 | | |
93 | | - | |
| 77 | + | |
94 | 78 | | |
95 | 79 | | |
96 | 80 | | |
| |||
119 | 103 | | |
120 | 104 | | |
121 | 105 | | |
122 | | - | |
| 106 | + | |
123 | 107 | | |
124 | 108 | | |
125 | 109 | | |
| |||
0 commit comments