Add Reset mode

This commit is contained in:
gingerBill
2024-06-15 15:17:23 +01:00
parent eaec8a2bbf
commit 318d5e4a7e
4 changed files with 39 additions and 13 deletions
+2
View File
@@ -67,6 +67,8 @@ to_random_generator :: proc() -> runtime.Random_Generator {
switch mode {
case .Read:
rand_bytes(p)
case .Reset:
// do nothing
case .Query_Info:
if len(p) != size_of(runtime.Random_Generator_Query_Info) {
return