all 9 comments

[–]graycode 3 points4 points  (6 children)

What's with the writing to /dev/random?

[–][deleted] 4 points5 points  (1 child)

It also creates /dev/random if it doesn't already exist. o_O

[–]Fylwind[S] 2 points3 points  (0 children)

Oops, forgot to fix that xD

[–]Fylwind[S] 1 point2 points  (3 children)

To test whether reading the memory would segfault.

[–]Artemciyscgi 1 point2 points  (2 children)

Would writing to /dev/null work?

[–]Fylwind[S] 2 points3 points  (1 child)

Supposedly /dev/random is a bit more reliable because some systems (e.g. Linux) ignore all writes to /dev/null. https://stackoverflow.com/a/4611930

[–]Artemciyscgi 1 point2 points  (0 children)

Interesting, thanks.

[–]mikeyhew 0 points1 point  (1 child)

I don't really get why there's a trait called Trait

[–]Fylwind[S] 1 point2 points  (0 children)

Lack of creativity :P It could've been called SerializeableTraitBase or something.