php Programming Glossary: deterministic
Secure random number generation in PHP http://stackoverflow.com/questions/1182584/secure-random-number-generation-in-php recognize that is not a good idea. The seed cancels out deterministic mt_rand and so there is no point at all in even including it...
How to automatically generate salt for crypt method with blowfish http://stackoverflow.com/questions/13556516/how-to-automatically-generate-salt-for-crypt-method-with-blowfish These two criterias are a bit difficult to fulfill with a deterministic computer so the best thing you can do is to use the random source..
Make PHP page return “304 Not Modified” if it hasn't been modified http://stackoverflow.com/questions/2978496/make-php-page-return-304-not-modified-if-it-hasnt-been-modified same thing with the same _GET parameters every time it's deterministic. Unfortunately for efficiency this file is requested very often..
PHP Typecasting - Good or bad? http://stackoverflow.com/questions/3695295/php-typecasting-good-or-bad handles mixed type arguments in a well understood testable deterministic way. The main point which you clearly understand as well is.. a simple and clean way to ensure that the function behaves deterministically for all possible inputs without having to write specific..
Non-deterministic object reference bug in PHP 5.3.X http://stackoverflow.com/questions/4188125/non-deterministic-object-reference-bug-in-php-5-3-x deterministic object reference bug in PHP 5.3.X As of yesterday perhaps after.. a recent PHP update I'm getting some very strange non deterministic bugs in php 5.3.3. These appear in our production server in.. no changes to the code makes it work again. Hence non deterministic. Edit 2 Furthermore while PHP is set to log even the tiniest..
Determining, if a variable is a valid closure in PHP http://stackoverflow.com/questions/7101469/determining-if-a-variable-is-a-valid-closure-in-php closures share improve this question The most deterministic way to check if a callback is an actual closure is function..
Update old stored md5 passwords in PHP to increase security http://stackoverflow.com/questions/8841719/update-old-stored-md5-passwords-in-php-to-increase-security few points here What you have in salt is not a salt. It's deterministic meaning that there is no randomness in there at all . If you.. generator or pseudorandom generator is not available a deterministic alternative for generating the salt or the random part of it..
Securely send a Plain Text password? http://stackoverflow.com/questions/9934189/securely-send-a-plain-text-password I've never really found a solution for this but using a deterministic algorithm to turn a username into a salt solves this problem... into a salt solves this problem. If the algorithm isn't deterministic an attacker could potentially figure out which username exists..
Accessing MySQL stored procedure output in Zend Framework 2 http://stackoverflow.com/questions/14416204/accessing-mysql-stored-procedure-output-in-zend-framework-2 VARCHAR 50 IN password VARCHAR 128 OUT code INTEGER NOT DETERMINISTIC COMMENT 'Registers a user' BEGIN INSERT INTO user VALUES username..
Get relative date from the NOW() function [duplicate] http://stackoverflow.com/questions/17182001/get-relative-date-from-the-now-function `PassedSince` `stamp` TIMESTAMP RETURNS VARCHAR 100 DETERMINISTIC BEGIN DECLARE `result` VARCHAR 100 DEFAULT '' DECLARE `seconds`..
How to efficiently find the closest locations nearby a given location http://stackoverflow.com/questions/3922404/how-to-efficiently-find-the-closest-locations-nearby-a-given-location double lonA double latB double LonB double RETURNS double DETERMINISTIC BEGIN SET @RlatA radians latA SET @RlonA radians lonA SET @RlatB..
distance calculations in mysql queries http://stackoverflow.com/questions/3986556/distance-calculations-in-mysql-queries double lonA double latB double LonB double RETURNS double DETERMINISTIC BEGIN SET @RlatA radians latA SET @RlonA radians lonA SET @RlatB..
Levenshtein: MySQL + PHP http://stackoverflow.com/questions/4671378/levenshtein-mysql-php levenshtein s1 VARCHAR 255 s2 VARCHAR 255 RETURNS INT DETERMINISTIC BEGIN DECLARE s1_len s2_len i j c c_temp cost INT DECLARE s1_char.. s1 VARCHAR 255 s2 VARCHAR 255 RETURNS INT DETERMINISTIC BEGIN DECLARE s1_len s2_len max_len INT SET s1_len LENGTH s1..
Filling Gaps in Dates Returned from Database - pure SQL solution possible? http://stackoverflow.com/questions/5059380/filling-gaps-in-dates-returned-from-database-pure-sql-solution-possible delimiter CREATE PROCEDURE FillDateTable LANGUAGE SQL NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER COMMENT '' BEGIN drop table..
mySQL Stored Function to create a slug http://stackoverflow.com/questions/5409831/mysql-stored-function-to-create-a-slug varchar 200 RETURNS varchar 200 CHARSET latin1 DETERMINISTIC BEGIN DECLARE x y z Int Declare temp_string new_string VarChar..
MySQL parent -> child query http://stackoverflow.com/questions/943507/mysql-parent-child-query value INT RETURNS INT NOT DETERMINISTIC READS SQL DATA BEGIN DECLARE _id INT DECLARE _parent INT DECLARE..
|