refactor: replace usages of XModuleMixin.system with XBlock.runtime

This commit is contained in:
0x29a
2023-01-09 11:44:24 +01:00
committed by Agrendalath
parent fd191db332
commit 3a1011bed8
24 changed files with 47 additions and 47 deletions

View File

@@ -71,8 +71,8 @@ class RandomizeBlock(
if self.choice is None:
# choose one based on the system seed, or randomly if that's not available
if num_choices > 0:
if self.system.seed is not None:
self.choice = self.system.seed % num_choices
if self.runtime.seed is not None:
self.choice = self.runtime.seed % num_choices
else:
self.choice = random.randrange(0, num_choices)