upstream: https://github.com/mirage/mirage-crypto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add update_col and delete_col to csvt

Typed column updates: decode → transform → re-encode a specific
column by name. delete_col removes a column from header and row.
4 new tests (50 total).

+3 -3
+3 -3
src/c/entropy_cpu_stubs.c
··· 216 216 /* AMD Ryzen 3000 bug where RDRAND always returns -1 217 217 https://arstechnica.com/gadgets/2019/10/how-a-months-old-amd-microcode-bug-destroyed-my-weekend/ */ 218 218 for (int i = 0; i < 10; i++) 219 - if (_rdrand_step(&r) == 1 && r != (random_t) (-1)) { 219 + if (_rdrand_step(&r) == 1 && r != (random_t) (-1) && r != 0) { 220 220 __cpu_rng = RNG_RDRAND; 221 221 break; 222 222 } 223 223 224 224 if (mc_detected_cpu_features.rdseed) 225 - /* RDSEED could return -1, thus we test it here 225 + /* RDSEED could return -1 or stuck-at-zero, thus we test it here 226 226 https://www.reddit.com/r/Amd/comments/cmza34/agesa_1003_abb_fixes_rdrandrdseed/ */ 227 227 for (int i = 0; i < 100; i++) 228 - if (_rdseed_step(&r) == 1 && r != (random_t) (-1)) { 228 + if (_rdseed_step(&r) == 1 && r != (random_t) (-1) && r != 0) { 229 229 __cpu_rng |= RNG_RDSEED; 230 230 break; 231 231 }