zig/lib/std
Justin Whear 62fe4a0ba8
std.rand.Random: add enumValue() (#9583)
* add Random.enumValue()

* edits suggested by review

* applied zig fmt

* Rewrite to use std.enums.values

Implemented pfgithub's suggestion to rewrite against this function, greatly simplifying the implementation.

Co-authored-by: Justin Whear <justin@economicmodeling.com>
2021-08-19 22:18:23 +03:00
..
atomic stage2: miscellaneous fixes for the branch 2021-07-20 12:19:16 -07:00
build Add option to hide build command on compilation error to build_runner (#8513) 2021-07-27 21:30:53 -04:00
c Fix darwin ulock usage on macOS (#9545) 2021-08-13 22:43:42 -05:00
compress std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
crypto std.crypto: handle the top bit in 25519.field.fromBytes64() (#9435) 2021-07-22 01:27:42 +02:00
event std.Thread: even more typo fixes 2021-06-30 21:49:00 -05:00
fmt std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
fs Merge pull request #9559 from squeek502/walker-basename 2021-08-14 11:08:10 +03:00
hash Correct hasUniqueRepresentation for vectors 2021-07-21 15:19:57 -04:00
heap fix code broken from previous commit 2021-06-21 17:03:03 -07:00
io WASI,libc: enable tests. 2021-07-27 09:01:00 +09:00
json std/json: Fix premature closing brace being considered valid JSON 2021-05-13 11:11:28 +02:00
math FIX typo in doc comment for std.math.hypot (#9413) 2021-07-18 23:53:06 +02:00
mem fix code broken from previous commit 2021-06-21 17:03:03 -07:00
meta Correct hasUniqueRepresentation for vectors 2021-07-21 15:19:57 -04:00
net Ip4Address parser: reject 0-prefixed components (#9538) 2021-08-09 22:44:23 +02:00
os Expose register_eventfd, register_eventfd_async, unregister_eventfd i… (#9449) 2021-08-13 22:41:18 -05:00
rand implement xoshiro256++ (#9298) 2021-07-04 16:15:23 +02:00
special compiler-rt: do not depend on usingnamespace 2021-08-12 10:48:54 -07:00
target compiler-rt: do not depend on usingnamespace 2021-08-12 10:48:54 -07:00
testing Year++ 2020-12-31 15:45:24 -08:00
Thread Fix darwin ulock usage on macOS (#9545) 2021-08-13 22:43:42 -05:00
time Year++ 2020-12-31 15:45:24 -08:00
unicode std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
valgrind Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
x fix code broken from previous commit 2021-06-21 17:03:03 -07:00
zig Try audodetecting sysroot when building Darwin on Darwin 2021-08-10 13:41:10 +02:00
array_hash_map.zig libstd: add ArrayHashMap.popOrNull function 2021-08-04 09:47:42 +02:00
array_list.zig std/ArrayList: Allow ArrayList(u0) to be created 2021-07-28 18:05:40 -04:00
ascii.zig add allocation free versions of lower/upper string 2021-06-08 14:27:44 -04:00
atomic.zig stage2: miscellaneous fixes for the branch 2021-07-20 12:19:16 -07:00
base64.zig std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
bit_set.zig Make DynamicBitSet.iterator take self as const 2021-08-06 09:09:02 +03:00
buf_map.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
buf_set.zig Breaking hash map changes for 0.8.0 2021-06-03 17:02:16 -05:00
build.zig macho: add basic support for building iOS binaries 2021-08-10 13:40:39 +02:00
builtin.zig Update all usages of mem.split/mem.tokenize for generic version 2021-08-06 02:01:47 -07:00
c.zig review: use defined flag for oflags. 2021-08-09 14:36:11 +09:00
child_process.zig Update all usages of mem.split/mem.tokenize for generic version 2021-08-06 02:01:47 -07:00
coff.zig Add support for reading DWARF debug information from COFF files 2021-06-18 16:19:20 -07:00
compress.zig std: Update test "" to test where it makes sense 2021-01-22 15:46:58 +01:00
comptime_string_map.zig ComptimeStringMap: expose kvs array in returned struct 2021-08-13 16:22:56 -07:00
crypto.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
cstr.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
debug.zig std: check for overflow in writeCurrentStackTrace 2021-08-02 13:40:53 -04:00
dwarf_bits.zig Year++ 2020-12-31 15:45:24 -08:00
dwarf.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
dynamic_library.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
elf.zig Add fat/universal dylib support to zig ld 2021-06-25 08:38:47 +02:00
enums.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
event.zig Year++ 2020-12-31 15:45:24 -08:00
fifo.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
fmt.zig std.fmt: add support for printing slices strings (#9562) 2021-08-19 14:12:11 +03:00
fs.zig Merge pull request #9559 from squeek502/walker-basename 2021-08-14 11:08:10 +03:00
hash_map.zig std.HashMap: fix getPtrAdapted. AstGen: fix fn param iteration 2021-08-05 23:17:29 -07:00
hash.zig Year++ 2020-12-31 15:45:24 -08:00
heap.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
io.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
json.zig fix style warning in json.zig 2021-07-19 12:55:05 +03:00
leb128.zig std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
linked_list.zig std: fix code unblocked by previous commit 2021-06-21 17:03:03 -07:00
log.zig add compile error if root.log is not a function 2021-06-22 16:38:18 +03:00
macho.zig macho: swap out VERSION_MIN for BUILD_VERSION 2021-08-10 13:41:10 +02:00
math.zig zig fmt 2021-06-10 20:13:43 -07:00
mem.zig Update mem.split/mem.tokenize doc comments 2021-08-11 21:19:03 -04:00
meta.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
multi_array_list.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
net.zig Ip4Address parser: reject 0-prefixed components (#9538) 2021-08-09 22:44:23 +02:00
once.zig changes to accomodate std.Thread update 2021-06-30 21:48:59 -05:00
os.zig Merge remote-tracking branch 'origin' into libc-wasi-test 2021-08-09 14:39:26 +09:00
packed_int_array.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
pdb.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
priority_dequeue.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
priority_queue.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
process.zig Merge remote-tracking branch 'origin' into libc-wasi-test 2021-08-09 14:39:26 +09:00
Progress.zig std.Progress: revert to the older strategy 2021-07-20 19:11:47 -07:00
rand.zig std.rand.Random: add enumValue() (#9583) 2021-08-19 22:18:23 +03:00
SemanticVersion.zig Update all usages of mem.split/mem.tokenize for generic version 2021-08-06 02:01:47 -07:00
sort.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
start_windows_tls.zig move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
start.zig WASI,libc: enable tests. 2021-07-27 09:01:00 +09:00
std.zig x, x/os/Socket: initial work on new Socket abstraction 2021-04-25 21:15:02 +09:00
target.zig add -femit-llvm-bc CLI option and implement it 2021-07-22 19:51:32 -07:00
testing.zig Use std.buuiltin instead of importing builtin 2021-08-13 21:49:52 +09:00
Thread.zig Merge remote-tracking branch 'origin' into libc-wasi-test 2021-08-09 14:39:26 +09:00
time.zig std: update usage of std.testing 2021-05-08 15:15:30 +03:00
unicode.zig Add std.unicode.fmtUtf16le 2021-07-15 20:37:16 +03:00
valgrind.zig std: update regarding std.builtin reorganization 2021-05-17 16:08:09 -07:00
wasm.zig wasm: Implement wrapping operands, add opcodes to wasm.zig 2021-08-01 11:07:23 +02:00
x.zig x/io, x/os: async i/o reactor, cross-platform socket syscalls and bits 2021-06-01 18:22:57 +09:00
zig.zig add -femit-llvm-bc CLI option and implement it 2021-07-22 19:51:32 -07:00