# std.rand: make weightedIndex proportions param a const slice · gitcafe/zig

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

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

Visibility: public

Requested revision: e6be6d97683d5443f48ce8b6d86fdf27f0f1d556

Requested commit: e6be6d97683d5443f48ce8b6d86fdf27f0f1d556

Commit: e6be6d97683d5443f48ce8b6d86fdf27f0f1d556

Tree: 7348ad6c9a7816dd618c7053e1addc7bf27c717d

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
std.rand: make weightedIndex proportions param a const slice

The function does not mutate the proportions and the signature should reflect that.

```

## Parents

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

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