w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Is it possible to make writing to files/reading from files safe for a questionnaire type website?

I see a few solutions:

  • read /dev/urandom a few times, calculate sha-256 of the number and use it as a file name; collision is extremely improbable

  • use Redis and command like LPUSH, using it from Python is very easy; then RPOP from right end of the linked list, there's your queue

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.