mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Add @(rodata) and @(static, rodata) where appropriate
This commit is contained in:
@@ -111,7 +111,7 @@ next_random :: proc(r: ^[2]u64) -> u64 {
|
||||
|
||||
@(require_results)
|
||||
random_string :: proc(buf: []byte) -> string {
|
||||
@static digits := "0123456789"
|
||||
@(static, rodata) digits := "0123456789"
|
||||
|
||||
u := next_random(&random_string_seed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user