From fb969353aed7bf1ba6038035e64bd8ae2ca62490 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 23 Jun 2019 17:17:42 -0400 Subject: [PATCH] ninja-edit --- blog/v-vaporware-2019-06-23.markdown | 29 ---------------------------- 1 file changed, 29 deletions(-) diff --git a/blog/v-vaporware-2019-06-23.markdown b/blog/v-vaporware-2019-06-23.markdown index de6baa6..ebfa170 100644 --- a/blog/v-vaporware-2019-06-23.markdown +++ b/blog/v-vaporware-2019-06-23.markdown @@ -358,32 +358,6 @@ _libcurl provides for free_. I wasn't expecting it to have HTTP support out of the box, but even then I still feel disappointed. -## Random Number Generation - -Randomness is important for programming languages to get right. Here is how V -implements randomness: - -``` -module rand - -#include -// #include -fn seed() { - # time_t t; - # srand((unsigned) time(&t)); -} - -fn next(max int) int { - # return rand() % max; - return 0 -} -``` - -I mean I guess this is technically a valid implementation of randomness, but -this is how you get security vulnerabilities because people -[thought random values were random](https://www.rapid7.com/db/vulnerabilities/openssl-debian-weak-keys). -A correct implementation is commented out. Yay. - ## Suggestions for Improvement I would like to see V be a tool for productive development. I can't see it doing @@ -424,9 +398,6 @@ back your claim. If there is no code to back it up, you have backed yourself into a corner where you are looking like you are lying. I would have loved to benchmark V's web framework against Nim's Jester and Go's net/http, but I can't. -Please fix the implementation of randomness. Holy crap that is a billion -security bugs waiting to happen. - Thanks for reading this far. I hope this feedback can help make V a productive tool for programming. It's a shame it seems to have been hyped so much for comparatively so little as a result. The developer has been hyping and selling