Add Reset mode

This commit is contained in:
gingerBill committed 2024-06-15 15:17:23 +01:00
1 parent eaec8a2bbf
commit 318d5e4a7e
4 files changed
+39 -13

No files matched your search

+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