Don't seed the RNG from the contents of the buffer
diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index b31dbbc..51c1198 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc
@@ -1270,10 +1270,7 @@ c.set_auto_zwnj (lookups[table_index][i].auto_zwnj); if (lookups[table_index][i].random) { - uint64_t random_state = 1; - for (unsigned int j = 0; j < buffer->len; j++) - random_state = 31 * random_state + buffer->info[j].codepoint; - c.set_random_state (random_state); + c.set_random (true); buffer->unsafe_to_break_all (); } apply_string<Proxy> (&c,