# std: tlcsprng: cleanups & improvements · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2e4b409f31352ff08dbabf350519ba0f5212218a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2e4b409f31352ff08dbabf350519ba0f5212218a

Requested commit: 2e4b409f31352ff08dbabf350519ba0f5212218a

Commit: 2e4b409f31352ff08dbabf350519ba0f5212218a

Tree: e0107a3c5dc9aa81a0538c48c7adb798364df8f2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: tlcsprng: cleanups & improvements

 * get rid of the pointless fences
 * make seed_len 16 instead of 32, which is accurate since it was
   already padding the rest anyway; now we do 1 pad instead of 2.
 * secureZero to clear the AT_RANDOM auxval
 * add a flag root source files can use to disable the start code. This
   is in case people want to opt out of the initialization when they
   don't depend on it.

```

## Parents

- [228a0937a2bb761b3a63d98ddda5402a1f594fe8](https://git.cafe/gitcafe/zig/commit/228a0937a2bb761b3a63d98ddda5402a1f594fe8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2e4b409f31352ff08dbabf350519ba0f5212218a?format=markdown)
