mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
7 lines
256 B
JavaScript
7 lines
256 B
JavaScript
|
var crypto = require('crypto'),
|
||
|
packageInfo = require('../../../package.json');
|
||
|
|
||
|
module.exports = function generateAssetHash() {
|
||
|
return (crypto.createHash('md5').update(packageInfo.version + Date.now()).digest('hex')).substring(0, 10);
|
||
|
};
|