mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Add Reset mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user