FakeKeyScheme

constructor(random: Random, before: suspend (FakeKeyOperation) -> Unit = {})

Parameters

random

where generate's points come from. There is no default: pass a seeded Random, so a red that depends on which key sorts first replays the same way. Two schemes on equal seeds draw the same keys. Draws are taken under a lock, so one scheme is safe to share across threads.

before

runs at the start of every operation, with the operation it is about to run.