support shared randomness lines

As mentioned in legacy/trac#19398 (moved) by atagar:

support Shared randomness (stem change)