figsoda / figsoda/rand-nix

bug: doesn't work in pure evaluation mode

Open
#1 2 comments 6 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Nix
Stars
61
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
nix eval .#rng
error:
… while evaluating the attribute 'int'

at /nix/store/h48bkrwv159k9y8gqnz0h86i0mrvgdwr-source/default.nix:25:5:

24| rng = seed: fix (self: {
25| int = (fromTOML "x=0x${substring 28 8 (hash seed)}").x;
| ^
26|

… while calling the 'fromTOML' builtin

at /nix/store/h48bkrwv159k9y8gqnz0h86i0mrvgdwr-source/default.nix:25:12:

24| rng = seed: fix (self: {
25| int = (fromTOML "x=0x${substring 28 8 (hash seed)}").x;
| ^
26|

(stack trace truncated; use '--show-trace' to show the full trace)

error: access to absolute path '/proc/sys/kernel/random/uuid' is forbidden in pure eval mode (use '--impure' to override)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.